C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to prevent a COM object and its associated dialog out of

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Leo
Guest





PostPosted: Fri Apr 29, 2005 11:50 pm    Post subject: How to prevent a COM object and its associated dialog out of Reply with quote



In the main dialog, I have a context menu. When I click a menu item, it
will invoke a COM object which will create a dialog (this COM object is
its wrapper).

My problem is: after the click event finishes, the COM object is out of
scope. However, I don't want this happen because I still need to play
with the new dialog and its wrapper. Any suggestion? Thanks.

Leo

Back to top
Phlip
Guest





PostPosted: Sat Apr 30, 2005 12:05 am    Post subject: Re: How to prevent a COM object and its associated dialog ou Reply with quote



Leo wrote:

Quote:
In the main dialog, I have a context menu. When I click a menu item, it
will invoke a COM object which will create a dialog (this COM object is
its wrapper).

You will get the best answer on a newsgroup that covers the library that
interfaces with COM. This could be the <comdef.h> stuff, or ATL, or MFC, or
several other systems.

Your post makes us guess which one you use.

This newsgroup focusses on raw C++ itself, not any of the zillions of
C++-related libraries and topics.

Quote:
My problem is: after the click event finishes, the COM object is out of
scope. However, I don't want this happen because I still need to play
with the new dialog and its wrapper. Any suggestion? Thanks.

Some people who ask questions like that have built an application using the
Class Wizard, and then don't know enough about programming to then properly
featurize the resulting code. Don't be like that: Crack some books first.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.