D
david
Basically I am trying to do a createdispatch in dll InitInstance
In the InitInstance, I have the following code:
if (CLSIDFromProgID(OLESTR("TApp.App"), &clsid) != NOERROR)
{
AfxMessageBox("From Dll, server not registered");
return 1;
} else {
if (local_ifc->m_lpDispatch == NULL ){
if( ! local_ifc->CreateDispatch(clsid,err))
{
AfxMessageBox("Unable to create instance");
err->ReportError();
return 2;
}
}
}
I am running it on XP Professional and when it steped over
local_ifc->CreateDispatch, it just never returns back.
So, just wondering if there is anything I should be aware of?
In the InitInstance, I have the following code:
if (CLSIDFromProgID(OLESTR("TApp.App"), &clsid) != NOERROR)
{
AfxMessageBox("From Dll, server not registered");
return 1;
} else {
if (local_ifc->m_lpDispatch == NULL ){
if( ! local_ifc->CreateDispatch(clsid,err))
{
AfxMessageBox("Unable to create instance");
err->ReportError();
return 2;
}
}
}
I am running it on XP Professional and when it steped over
local_ifc->CreateDispatch, it just never returns back.
So, just wondering if there is anything I should be aware of?