02-18-2010 03:40 PM
I am unable to perform certain builds using Lab Windows CVI 8.1 and Visual Studio 2005. What I've done is created the front panel using Lab Windows and integrated this with the backend in Visual Studio.
When I go to create a debug it build successfully. Then I go to run it and get a pestky runtime error and the application aborts before it even starts. Here's the error I get:
"Unable to start program 'c:\...\myexecutable.exe'
This application has failed to start because the application is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix this problem. For more details, please see the applicaiton event log."
Could this be something with a CVI runtime dll? I'm not sure how to correct it. I've only seen it when trying to merge the Lab Windows and Visual Studio projects like explained.
Thanks!
02-19-2010 12:56 AM
02-19-2010 10:23 AM
I do have the call to InitCVIRTE in my code. The code snipit is shown below. It's the first call I make. Any other ideas??
Thanks!
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
::InitCVIRTE(0, 0, 0);
...
}
02-22-2010 10:16 AM