I would like to know if there is a way to directly program in octave - or other open source similar to matlab - within a VB.net project (maybe there are some packages).
In this way I could use the calculation functions of octave (which are more advanced than those within vb.net) and write interface and publish an executable with vb.net.
Thanks
Related
How to run external programs in pure Kotlin?
From a program written in Kotlin for Windows, I want to run external programs. I want to do it I want to do it in pure Kotlin (not Java). Please provide sample code.
For example: how to start and open Notepad with .txt file, MyProgram.exe. (in Windows it's the WinExec() function) What to read about it, maybe a few links. :)
I'm a beginner. I've read the kotlin documentation and couldn't find anything.
I just wanted to get clarification on the approach I'm taking with my program. I'm making a program with custom interface for achiving folders. I would like to use 7zip if possible. In the past I have written batch scripts to that use 7zip command line for archiving. If I want to use my VB tool on a system that doesn't have this available, I would like for this to be embedded in my app.
My question is that know how to embed an exe in a VB app, but does this make it immediately available for use in the program no matter where I use it? Or it make the exe available to be deployed somewhere on the station, then I would have to call it from the disk and then possibly delete it when I'm done?
I've done some searching online for similar applications, but am still unsure of how to use embedded files. I'm not looking for example code. Just clarification on whether I can immediately call the exe from within my app, or I embedding just means I can place that file somewhere on the station that I move my app to and then use it? Clarification on this would be most welcome. Thanks!!!
I am building an application in VB (VS2012) and the main code is written in Matlab. I would like to call the Matlab scripts from the VB form and also display the results of the calculations in the VB form in a datagrid. Can somebody suggest what my mode of exchange should be?
Thanks for the help.
You have two main options.
MATLAB has a COM interface. From VB, you can start an instance of MATLAB, pass data to it, execute commands, retrieve results, and quit MATLAB. To find out more, take a look at the documentation pages for the MATLAB COM Automation Server. This method will require you to have a live copy of MATLAB present when you run your VB application.
You can use an add-on product to MATLAB, MATLAB Builder NE for .NET (you'll also require another add-on that it depends on, MATLAB Compiler). MATLAB Builder NE allows you to convert your MATLAB code into a standalone .NET assembly or COM component that can be called from your VB application, and distributed with it.
Note that contrary to a comment, MATLAB Compiler alone without MATLAB Builder NE does not allow you to produce .NET assemblies.
I've written some VBA which accesses the users Outlook notes and contacts, performs some manipulations, modifies the notes and contacts and at the same time outputs some text files. It works very well.
At present it runs (like all other VBA code) inside Outlook by doing Tools > Macro > Macros... however installation is a pain for non-tech savvy users to do and given that is is a simple BAS module (no forms), it doesn't really need to be run in this way.
A script file which could be executed by double-clicking within explorer would be a far better option. This would be easier to re-distribute and mean that anyone could use it.
Assuming it is possible to turn the VBA into a standalone script...
How do I do it?
What should I also know? Any caveats or things to be aware of? Any code I'll need to change?
Thanks.
I realize this post is old, but is a VB6 COM DLL an option?
Here's a simple example of what you can do:
http://support.microsoft.com/kb/316983
And you can use an installer like Inno Setup to create an EXE which would install and register the DLL on each computer.
An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5
The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions.
Previously this was an embedded msscript.ocx - in the first .Net conversion, this was wrapped in Interop.MSScriptControl.dll, however, on Windows 7 this just isn't working.
It looks like this is really not the way to be doing this anyway - Microsoft seem to be trying to kill vbscript.
Is there a 'supported' way of using VBScript, or is it time to move on? and if so, where is there to move to that provides the same sort of functionality?
PowerShell is the really the way you want to go if you want to do scripting. Here are some of the new features in PowerShell on Windows 7. Here is a VBScript to PowerShell conversion guide.
There are also tons of great resources over at PowerShell.com including a nice IDE.