By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,796 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

createdispatch hang

P: n/a
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?
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
david wrote:
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

--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.