LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I get a Protection error when calling a VC++ DLL from LabWindows/CVI

Hi everyone,
I have to exchange data from my LabWindows application with a VC++ DLL. I have created another VC++ DLL that will call the C++ functions and transform them into ANSI C. I've integrate the VC++ DLL into my CVI project but when I call a fucntion from the DLL a Protection Errors appears. How can I solve this problem?
0 Kudos
Message 1 of 2
(2,930 Views)
Hello

You can try to pinpoint the problem by debugging the CVI executable from Visual C++ and see where exactly the problem comes up. This will allow you to trace the dll code as called by your CVI executable. Try also loading up the dll at run-time (using LoadLibrary() and GetProcAddress() ) and see if that changes behavior. I'm assuming ofcourse that you have already tried to make a test program with VC++ to check the dll loads up fine.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,930 Views)