G
Guest
I have developed a Simple MFC GUI to allow a user to display and control an activity
The program works fine on a PC with Visual Studio installed, but when I transfer the progra
to a Laptop computer I get an Assertion Failure line 410 of file occmgr.cpp
I built a Deployment & Install project to formally install the program, but still keep getting the same error. It works fine on a desktop PC without Visual Studio installed
Someone suggested to try ( from Microsoft).
BUG: "HRESULT - 0x80010106" Error When You Run a Managed C++ Applicatio
#define _WIN32_WINNT 0x50
#include <objbase.h
#include <stdio.h>
#using <mscorlib.dll
using namespace System
extern "C" void mainCRTStartup()
[System::STAThread
int mymain() //the new entry poin
//Initialize CO
HRESULT hr = CoInitialize(0)
//Initialize the CR
mainCRTStartup()
//unini
CoUninitialize()
return 0
int main(
/
Do the application work
that you would do in your main threa
*
Explicitly specify the entry point to the mymain function. To do this, follow these steps:
Click Project, and then click Properties
In the Property Pages dialog box, expand Linker under Configuration Properties, and then click to select Advanced
In the Entry Point text box, type mymain, and then click OK
But I get Linker error:
Test GUI1 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartu
Help!?
The program works fine on a PC with Visual Studio installed, but when I transfer the progra
to a Laptop computer I get an Assertion Failure line 410 of file occmgr.cpp
I built a Deployment & Install project to formally install the program, but still keep getting the same error. It works fine on a desktop PC without Visual Studio installed
Someone suggested to try ( from Microsoft).
BUG: "HRESULT - 0x80010106" Error When You Run a Managed C++ Applicatio
#define _WIN32_WINNT 0x50
#include <objbase.h
#include <stdio.h>
#using <mscorlib.dll
using namespace System
extern "C" void mainCRTStartup()
[System::STAThread
int mymain() //the new entry poin
//Initialize CO
HRESULT hr = CoInitialize(0)
//Initialize the CR
mainCRTStartup()
//unini
CoUninitialize()
return 0
int main(
/
Do the application work
that you would do in your main threa
*
Explicitly specify the entry point to the mymain function. To do this, follow these steps:
Click Project, and then click Properties
In the Property Pages dialog box, expand Linker under Configuration Properties, and then click to select Advanced
In the Entry Point text box, type mymain, and then click OK
But I get Linker error:
Test GUI1 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartu
Help!?