Unregistered
January 22, 2004, 13:23:06
When loading an mfc sdi application which uses a dll which initializes the camera ,the call to AfxOleInit() in InitInstance function fails.
Stefan Geissler
January 22, 2004, 16:23:38
f the classlib is used together with an 3rd party ActiveX Control like the calendar control, the application will not start and the log shows a RPC_E_CHANGED_`MOD`E ($80010106) error.
There is a workaround available. Insert in one of the cpp files (i.e the app file) following lines of code:
struct static_init
{
static_init() { CoUninitialize(); OleInitialize( 0 ); }
};
#pragma init_seg( user )
static_init sys_init;
This is all to to.
May be, this resolves your problem too.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.