03-07-2006 11:35 AM
03-07-2006 01:24 PM
Yes you can call visual basic dlls from cvi. This faq may help
http://zone.ni.com/devzone/conceptd.nsf/webmain/1D0C73348D50DE5486256FAF00614757?opendocument
You can use a tool like dependency walker to look into the dll and pull out the information to create your own .h file. http://www.dependencywalker.com/
Make sure you define your functions as _stdcall so that they handle the stack in the same way as a visual basic program.
03-07-2006 01:52 PM
03-07-2006 02:12 PM
03-07-2006 02:20 PM
03-07-2006 02:28 PM
03-07-2006 03:00 PM
03-07-2006 03:22 PM
03-07-2006 03:35 PM
The machine that you distribute your executable to will need your VB .DLL registered in order for your .exe to use it. If you need to do this you can create a .bat file to distribute with your executable that runs the regsvr32 on your VB DLL, and when you build a distribution kit in CVI (I can only speak for v 7.0+ here ) you can have the CVI distribution kit run the batch file afterwards automatically.
03-07-2006 03:38 PM