03-17-2009 08:41 AM
Just to add:
Instead of calling LabVIEW.exe, the same functions are also in lvrt.dll. Path:
Program Files\National Instruments\shared\LabVIEW Run-Time\Version# by default.
That way a build executable can be distributed leaglly.
Felix
03-17-2009 10:10 AM
03-18-2009 06:30 AM
Thanks again Wiebe. Just typing in LabView even autocorrects to LabVIEW. The drawback is, that the Function Browser is not working any more... Guess, that's fixed in newer versions, as I'm still on outdated 7.1.
Felix
03-18-2009 07:40 AM
03-18-2009 08:53 AM
Can't check that as I'm not having a computer without LabView.
But the in the data folder of the built, I got the LabView.exe copied.
Felix
03-24-2009 06:37 AM
ok,
I'm through with this (almost), only one error left:)
When I copy the project and all subVI's, subfolders and dll project on other computer with LabView installed and try to run it I get error: "cannot run XXX.dll, compiled with wrong properties" Why? I'm using Visual Studio to compile the dll and on the other computers VS is not installed. What should I tick in project options to make it possible to run on other computers?
03-24-2009 03:17 PM - edited 03-24-2009 03:18 PM
przemmo wrote:ok,
I'm through with this (almost), only one error left:)
When I copy the project and all subVI's, subfolders and dll project on other computer with LabView installed and try to run it I get error: "cannot run XXX.dll, compiled with wrong properties" Why? I'm using Visual Studio to compile the dll and on the other computers VS is not installed. What should I tick in project options to make it possible to run on other computers?
That is not something you can fix in LabVIEW. If you use any C runtime functions in your DLL your DLL links with one of the msvcrtxx.dll by default. Each Visual Studio comes with a new version of those runtime libraries. Older Visual Studio runtimes come installed with the Windows versions that got released AFTER the Visual Studio version was released since components in Windows are compiled with Visual C also, but usually not with Beta or such versions.
So when creating a DLL in a recent version of Visual Studio you also have to install the Visual Studio redistributable components on that computer in order to run a project using that DLL. Or you can go into your Visual Studio project settings and tell it to link the static versions of the C runtime libraries. This will make your DLL substantially bigger.
Rolf Kalbermatter
03-24-2009 03:23 PM
F. Schubert wrote:Thanks again Wiebe. Just typing in LabView even autocorrects to LabVIEW. The drawback is, that the Function Browser is not working any more... Guess, that's fixed in newer versions, as I'm still on outdated 7.1.
Felix
I alwaysuse LabVIEW as library name. This will make sure that it will run on all platforms and IDE and runtimes. The labVIEW for Mac executable is not called labview.exe.
And I don't find the lack of browsable function list a problem since I do use the External Code Function Reference when deciding what function to use and how!
But LabVIEW 8.6 indeed shows the function list even when using LabVIEW as library name.
Rolf Kalbermatter
03-24-2009 04:09 PM
"go into your Visual Studio project settings and tell it to link the static versions of the C runtime libraries "
How can I do that rolfk?
03-25-2009 04:10 AM
przemmo wrote:"go into your Visual Studio project settings and tell it to link the static versions of the C runtime libraries "
How can I do that rolfk?
Well in the options for your project you should have a setting somewhere. In Visual C 6.0 it isin the C/C++ tab under Category Code Generation the drop down box called "use runtime library". Here you can select if it should link to a static single threade, static multi threaded or dynamic multithreaded library and if it should use the debug version of each. Can't help you with newer versions of Visual Studio since I refuse to use them for various reasons.
Rolf Kalbermatter