John McDermick
2011-04-06 13:30:43 UTC
I have a Windows CE development board. The OS version is WinCE 6.0.
I created a WinCE 5.0 project on my Windows7 computer in Visual
Studio.
When I compile and hit debug I get the message:
"Unable to start program '\NandFlash\programs\test.exe'. No process is
on the other end of the pipe"
I have googled for a solution and verified that the runtime library is
set to Multi-Threaded Debug (/MTd).
Prior to this problem I could not compile the project. I got this
error:
1>Linking...
1>corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external
symbol WinMain referenced in function WinMainCRTStartup
1>C:\......\test.exe : fatal error LNK1120: 1 unresolved externals
So I changed this code:
int main(int argc, char* argv[])
{
return myMain(argc, argv);
}
to this:
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
int argc = 0;
char* argv[1] ;
return myMain(argc, argv);
}
and then it compiled without errors....
Any ideas/suggestions as to how I solve this problem?
Thank you.
I created a WinCE 5.0 project on my Windows7 computer in Visual
Studio.
When I compile and hit debug I get the message:
"Unable to start program '\NandFlash\programs\test.exe'. No process is
on the other end of the pipe"
I have googled for a solution and verified that the runtime library is
set to Multi-Threaded Debug (/MTd).
Prior to this problem I could not compile the project. I got this
error:
1>Linking...
1>corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external
symbol WinMain referenced in function WinMainCRTStartup
1>C:\......\test.exe : fatal error LNK1120: 1 unresolved externals
So I changed this code:
int main(int argc, char* argv[])
{
return myMain(argc, argv);
}
to this:
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow)
{
int argc = 0;
char* argv[1] ;
return myMain(argc, argv);
}
and then it compiled without errors....
Any ideas/suggestions as to how I solve this problem?
Thank you.