Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crash Pin
«_Superman_»26-Jul-10 19:44
professional«_Superman_»26-Jul-10 19:44 
GeneralRe: Crash Pin
T.RATHA KRISHNAN26-Jul-10 19:51
T.RATHA KRISHNAN26-Jul-10 19:51 
QuestionRe: Crash Pin
«_Superman_»26-Jul-10 19:53
professional«_Superman_»26-Jul-10 19:53 
AnswerRe: Crash Pin
T.RATHA KRISHNAN26-Jul-10 19:58
T.RATHA KRISHNAN26-Jul-10 19:58 
AnswerRe: Crash Pin
Cedric Moonen26-Jul-10 20:36
Cedric Moonen26-Jul-10 20:36 
AnswerRe: Crash Pin
Iain Clarke, Warrior Programmer26-Jul-10 22:41
Iain Clarke, Warrior Programmer26-Jul-10 22:41 
AnswerRe: Crash Pin
Randor 27-Jul-10 9:33
professional Randor 27-Jul-10 9:33 
Question0x80040111 ClassFactory cannot supply requested class Pin
ggoutam726-Jul-10 16:47
ggoutam726-Jul-10 16:47 
Hello,

I am getting this error :
0x80040111 ClassFactory cannot supply requested class

I already done regsvr32 for the C++ ATL dll file.
When I check the registry, I can find the entry at HKEY_CLASSES_ROOT\CLSID.
InProcServer32 has the dll path as the default while threading model is Apartment.
I verified that there are entries in regedit for :
- clsid
- typelib
- event
- interface.

I called the CoInitialize as below :
HRESULT hr_init = ::CoInitialize(NULL);  // returns S_OK
if (FAILED(hr_init))
{
    return E_FAIL;
}

HRESULT hr_init2 = m_spIEventFiringObject.CreateInstance(__uuidof(EventFiringObject_OD));  // Fails here
if (FAILED(hr_init2))
{
    return E_FAIL;
}

m_pIEventFiringObjectEventHandler = new IEventFiringObjectEventHandler(*this, m_spIEventFiringObject, &CManualTest::OnEventFiringObjectInvoke);


When I run debug, CWinApp::InitInstance() was successful.
It fails at _AtlModule.DllGetClassObject(rclsid, riid, ppv);

When I run the client software, it fails with ClassFactory cannot supply requested class error.
Your guidance on solving this problem is very much appreciated.

Thanks,
Goutam
QuestionRe: 0x80040111 ClassFactory cannot supply requested class Pin
«_Superman_»26-Jul-10 19:14
professional«_Superman_»26-Jul-10 19:14 
AnswerRe: 0x80040111 ClassFactory cannot supply requested class Pin
ggoutam726-Jul-10 20:24
ggoutam726-Jul-10 20:24 
AnswerRe: 0x80040111 ClassFactory cannot supply requested class Pin
ggoutam727-Jul-10 0:09
ggoutam727-Jul-10 0:09 
GeneralRe: 0x80040111 ClassFactory cannot supply requested class Pin
Randor 27-Jul-10 9:36
professional Randor 27-Jul-10 9:36 
GeneralRe: 0x80040111 ClassFactory cannot supply requested class Pin
ggoutam727-Jul-10 16:07
ggoutam727-Jul-10 16:07 
Questionhow to read MSDN documentation?? Pin
AmbiguousName26-Jul-10 10:05
AmbiguousName26-Jul-10 10:05 
AnswerRe: how to read MSDN documentation?? Pin
Maximilien26-Jul-10 10:11
Maximilien26-Jul-10 10:11 
GeneralRe: how to read MSDN documentation?? Pin
Tomz_KV27-Jul-10 2:36
Tomz_KV27-Jul-10 2:36 
GeneralRe: how to read MSDN documentation?? Pin
ely_bob27-Jul-10 4:31
professionalely_bob27-Jul-10 4:31 
GeneralRe: how to read MSDN documentation?? Pin
Tomz_KV27-Jul-10 4:42
Tomz_KV27-Jul-10 4:42 
GeneralRe: how to read MSDN documentation?? Pin
Thomas Vanderhoof27-Jul-10 2:44
professionalThomas Vanderhoof27-Jul-10 2:44 
AnswerRe: how to read MSDN documentation?? Pin
Richard MacCutchan26-Jul-10 11:35
mveRichard MacCutchan26-Jul-10 11:35 
GeneralRe: how to read MSDN documentation?? Pin
Bob100027-Jul-10 4:52
professionalBob100027-Jul-10 4:52 
AnswerRe: how to read MSDN documentation?? Pin
cruest27-Jul-10 3:26
cruest27-Jul-10 3:26 
AnswerRe: how to read MSDN documentation?? Pin
HenryChilvers27-Jul-10 5:29
HenryChilvers27-Jul-10 5:29 
AnswerRe: how to read MSDN documentation?? Pin
Richard MacCutchan27-Jul-10 5:55
mveRichard MacCutchan27-Jul-10 5:55 
AnswerRe: how to read MSDN documentation?? Pin
phicho29-Jul-10 4:14
phicho29-Jul-10 4:14 

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.