createdispatch hang

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?
 
A

Artie Gold

david said:
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");
[snip irrelevant code]
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?

Yes. Here we speak standard C++, of which none of the things of which
you speak are a part.

Take your question elsewhere (to a group that deals with MS products
perhaps?)

--ag
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top