10-28-2012 05:33 PM - edited 10-28-2012 05:34 PM
Hi!
I am trying to write a DLL with Labview that is called from a C++ application. However, when I run it, the window below opens up briefly and then disappears.
Can I hide the window? It is really annoying
Thank you.
Solved! Go to Solution.
10-29-2012 08:30 AM
Hi 🙂
It is very probably that you are dynamically calling a VI using some kind of absolute path in the function compiled to DLL. TO have the window not appear you should take all the functions/VI that you are using and put them in the same folder as your DLL. I think that should help.
Please let me know if that helped.
Piotr
10-29-2012 09:23 AM
Hi Nokia!
The loading window is most likely popping up because it cannot find this DLL dependency (NI_AALBase.lvlib) in its expected place. So the program searches for a while, and finds it at another location. My suggestions would be:
1. Install/reinstall the appropriate version af the LabVIEW Run-time Engine (same version as your LV).
2. If that doesn't work try manually adding NI_AALBase.lvlib to your DLL build, and make sure it is in the Always Included tab in the source file selection.
3. There is an .ini setting to suppress loading windows. You must open you labview.ini setting file (it is in the same directory as LabVIEW.exe) and add the line
ShowLoadProgressDialog=True
Though this might be ignored if a file or directory is not found by the loader.
What is your LabVIEW version? Do you run this DLL on the same PC where it was created? Please try these solutions and in that time I can check if there is anything version related in this problem.
Best regards:
Andrew Valko
National Instruments
10-29-2012 03:46 PM
Thank you guys!
With your help I have found the problem and the solution.
I have copied just the dll file, but not the subfolder "data" where the lvanlys.dll could be found.
Thank you.
Enjoy