Example Code

Receiving "Application was unable to start correctly (0xc0000142)" error when compiling application (using Qt)

I think this is the wrong board for the question, but it fit the best in my opinion. If I need to move this, please let me know!


I have an application that connects to the NIDAQmx.lib, NIDAQmx.h, & NIDAQmx.dll. I am receiving an error when starting the application, saying "Application was unable to start correctly (0xc0000142)". When I comment out the DAQ library lines (as in DAQmxCreateTask("", &taskHandle); my code compiles and runs fine. Once these lines are uncommented the issue arises. My thought is that the DLLs are not being accessed? Although, I am connecting to the library and header file in the .pro file, as well the DLLs are installed via the DAQ software. Any help is greatly appreciated, thanks in advance!

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.