Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralListView: XP - 2000 CPU usage Pin
Dan Hill26-May-04 5:35
Dan Hill26-May-04 5:35 
GeneralRe: ListView: XP - 2000 CPU usage Pin
Ryan Binns26-May-04 19:08
Ryan Binns26-May-04 19:08 
GeneralOCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:13
sweep12326-May-04 5:13 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:28
jmkhael26-May-04 5:28 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:40
sweep12326-May-04 5:40 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:42
jmkhael26-May-04 5:42 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 5:48
sweep12326-May-04 5:48 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 5:57
jmkhael26-May-04 5:57 
The problem is a known issue to the VS.NET 2003, you can find the resolution in the following KB:

BUG: "HRESULT - 0x80010106" Error When You Run a Managed C++ Application
http://support.microsoft.com/?id=824480

However, for a MFC application, the managed entry point function should be
modified as:
//in Appname.cpp
...
#define _WIN32_WINNT 0x501 //for Windows2000, please use 0x0500
#include <objbase.h>
#include <stdio.h>

#using <mscorlib.dll>
using namespace System;

extern "C" void WinMainCRTStartup();

[System::STAThread]
int mymain() //the new entry point
{
//Initialize COM
HRESULT hr = CoInitialize(0);

//Initialize the CRT
WinMainCRTStartup();
//uninit
CoUninitialize();
return 0;
}


Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 6:09
sweep12326-May-04 6:09 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 6:20
sweep12326-May-04 6:20 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
jmkhael26-May-04 7:05
jmkhael26-May-04 7:05 
GeneralRe: OCCMGR.CPP Assertion Error Line 410 Pin
sweep12326-May-04 21:29
sweep12326-May-04 21:29 
GeneralDynamic compilation in c/c++ Pin
mooze26-May-04 4:48
mooze26-May-04 4:48 
GeneralRe: Dynamic compilation in c/c++ Pin
Navin26-May-04 6:42
Navin26-May-04 6:42 
GeneralRe: Dynamic compilation in c/c++ Pin
mooze26-May-04 20:57
mooze26-May-04 20:57 
GeneralUsing a DLL Pin
monrobot1326-May-04 4:47
monrobot1326-May-04 4:47 
GeneralRe: Using a DLL Pin
Diddy26-May-04 5:51
Diddy26-May-04 5:51 
GeneralList of computer connected to a network Pin
Member 115017626-May-04 4:28
Member 115017626-May-04 4:28 
GeneralRe: List of computer connected to a network Pin
David Crow26-May-04 5:17
David Crow26-May-04 5:17 
GeneralList of computer connected to a network Pin
Member 115017626-May-04 4:28
Member 115017626-May-04 4:28 
GeneralRe: List of computer connected to a network Pin
David Crow26-May-04 5:16
David Crow26-May-04 5:16 
GeneralParsing a CString Pin
BlackDice26-May-04 4:26
BlackDice26-May-04 4:26 
GeneralRe: Parsing a CString Pin
monrobot1326-May-04 5:18
monrobot1326-May-04 5:18 
GeneralRe: Parsing a CString Pin
BlackDice26-May-04 7:18
BlackDice26-May-04 7:18 
GeneralRe: Parsing a CString Pin
David Crow26-May-04 5:19
David Crow26-May-04 5:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.