 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Leo Guest
|
Posted: Fri Apr 29, 2005 11:50 pm Post subject: How to prevent a COM object and its associated dialog out of |
|
|
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
|
Posted: Sat Apr 30, 2005 12:05 am Post subject: Re: How to prevent a COM object and its associated dialog ou |
|
|
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 |
|
 |
|
|
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
|
|