test_man
2008-08-06 17:40:13 UTC
I have created a dll in Labwindows CVI. In this dll I dynamically call another dll using LoadLibrary function. This dll works fine when I call in labwindows cvi but using labview I can't load dll using LoadLibrary function. Any idea why?
for example;
I have created mydll.dll in cvi.
In mydll.dll I have code like this
dll_handle = LoadLibrary ("LIB2.dll"); if(dll_handle == NULL) { MessagePopup ("ERROR", "LIB2.DLL Load Error"); return -49; }
using labwindows I can call mydll.dll and it successfully loads LIB2.dll.
When I cann mydll.dll in labview my dll_handle is null.
for example;
I have created mydll.dll in cvi.
In mydll.dll I have code like this
dll_handle = LoadLibrary ("LIB2.dll"); if(dll_handle == NULL) { MessagePopup ("ERROR", "LIB2.DLL Load Error"); return -49; }
using labwindows I can call mydll.dll and it successfully loads LIB2.dll.
When I cann mydll.dll in labview my dll_handle is null.