System Error 998 While Loading LabVIEW DLL

Updated Jun 17, 2018

Reported In


  • LabVIEW

Programming Language

  • C++

Issue Details

I created a DLL in LabVIEW 2016 in order to use it in VC++.
I installed LabVIEW Run-Time Engine 2016 on the computer with VC++ and try to call the DLL. 
The VC++ application compiles correctly, but it gives System Error 998 when linking the LabVIEW DLL.
What is the problem?


In order to get rid of the error in your VC++ application, you need to call the LabVIEW DLL using the LoadLibrary and GetProcAddress to dynamically load the DLL and call the function.
Then, use the VC++ delayload feature as following:


where sampleDLL.dll is the name of the LabVIEW DLL you want to delayload.

For more information about this delayload feature, see the links under the Related Links section

Additional Information

When statically linking with a DLL, the linker provides options to delay load the DLL until the program calls a function in that DLL.


Not Helpful