LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in using DLLs from a VC++ 6.0 MFC application

Hi,
I am using Labview 7.1 for creating VIs.I have created DLLs for accessing
these
VIs from a VC++ application. The VC++ 6.0 project is created using MFC app
wizard. When I try to execute the VC++ project in Debug configuration it
works
fine. When I try to execute the same in release configuration I get an
error as
shown in the attachment.
0 Kudos
Message 1 of 2
(2,656 Views)
Hi Mukund!

I found this response on another forum thread that looked like it could help you out:
==============================================================
MSVC++ error (system error 998)
This is actually a Microsoft issue. It has something to do with static and
dynamic linking of the MFC DLL. Our R&D engineers have verified this with projects created with no LabVIEW code at all (that is why we believe it to be solely a Microsoft issue). There are three options at this time:
1. Link with the DLL form of MFC.
2. Do not link with the .lib from the LV DLL, instead use LoadLibrary and GetProcAddress to dynamically load the DLL and call the function.
3. Use the VC delayload feature to make the LV DLL not get loaded until the first call is made into it. See VC help on "delayload" for information on setting this up.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
==============================================================


Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(2,643 Views)