Click here to Skip to main content
15,892,927 members
Home / Discussions / COM
   

COM

 
AnswerRe: Need help : COM Interface Pin
User 21559721-Sep-06 19:51
User 21559721-Sep-06 19:51 
QuestionHow do i make COM inprocess server program using C++? Pin
Sakthiu20-Sep-06 22:41
Sakthiu20-Sep-06 22:41 
AnswerRe: How do i make COM inprocess server program using C++? Pin
prasad_som20-Sep-06 23:19
prasad_som20-Sep-06 23:19 
GeneralRe: How do i make COM inprocess server program using C++? Pin
Sakthiu20-Sep-06 23:23
Sakthiu20-Sep-06 23:23 
QuestionIssues Implementing ATL COM Callback Functionality Pin
Setesh8220-Sep-06 13:14
Setesh8220-Sep-06 13:14 
QuestionRe: Issues Implementing ATL COM Callback Functionality Pin
prasad_som20-Sep-06 23:22
prasad_som20-Sep-06 23:22 
AnswerRe: Issues Implementing ATL COM Callback Functionality Pin
Setesh8221-Sep-06 3:14
Setesh8221-Sep-06 3:14 
AnswerRe: Issues Implementing ATL COM Callback Functionality Pin
Mike Dimmick21-Sep-06 3:00
Mike Dimmick21-Sep-06 3:00 
I'd really recommend using the Automation events mechanism: define a dispatch interface containing the events you will be firing, implement IConnectionPoint on a C++ class using IConnectionPointImpl and on the main object itself using IConnectionPointContainerImpl.

The Visual Studio environment should generate the right code for you if you check the 'Support Connection Points' checkbox on the Attributes tab when creating a new ATL COM object (VC6, may be different in newer versions). It automatically creates an _IMyObjectEvents interface, assuming you specified MyObject as the COM class name in the wizard. To implement the interface, build the project then right-click your class in ClassView and choose Implement Connection Point. Tick _IMyObjectEvents and click OK. VC6 then generates a CProxy_IMyObjectEvents class which implements a FireXxx method for every method in the event interface.

In the VB6 application, use WithEvents so that VB hooks up the event handlers (named variableName_EventName) for you.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: Issues Implementing ATL COM Callback Functionality Pin
Setesh8221-Sep-06 5:42
Setesh8221-Sep-06 5:42 
QuestionCOM Interop apartment issue - QueryInterface failing?!? Pin
Daniel Deptford20-Sep-06 4:05
Daniel Deptford20-Sep-06 4:05 
Questionerror 80040154 at instantiation of COM object Pin
mkrelli19-Sep-06 22:55
mkrelli19-Sep-06 22:55 
Questiongive suggestion to start learning COM Pin
premkamalg19-Sep-06 20:10
premkamalg19-Sep-06 20:10 
AnswerRe: give suggestion to start learning COM Pin
ShilpiP28-Sep-06 0:11
ShilpiP28-Sep-06 0:11 
AnswerRe: give suggestion to start learning COM Pin
Hamid_RT28-Sep-06 9:10
Hamid_RT28-Sep-06 9:10 
QuestionError in Deployment Pin
Jeeva Mary Varghese19-Sep-06 18:21
Jeeva Mary Varghese19-Sep-06 18:21 
AnswerRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 18:54
Stephen Hewitt19-Sep-06 18:54 
QuestionRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:13
Jeeva Mary Varghese19-Sep-06 19:13 
AnswerRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 19:37
Stephen Hewitt19-Sep-06 19:37 
GeneralRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:44
Jeeva Mary Varghese19-Sep-06 19:44 
GeneralRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 19:49
Stephen Hewitt19-Sep-06 19:49 
GeneralRe: Error in Deployment Pin
Jeeva Mary Varghese19-Sep-06 19:59
Jeeva Mary Varghese19-Sep-06 19:59 
GeneralRe: Error in Deployment Pin
Stephen Hewitt19-Sep-06 20:28
Stephen Hewitt19-Sep-06 20:28 
QuestionLeak for not calling VariantClear on a Variant holding a IXMLDOMSchemaCollection2Ptr Pin
rajandpayal17-Sep-06 4:29
rajandpayal17-Sep-06 4:29 
AnswerRe: Leak for not calling VariantClear on a Variant holding a IXMLDOMSchemaCollection2Ptr Pin
Aamir Butt19-Sep-06 20:57
Aamir Butt19-Sep-06 20:57 
QuestionIE Extension: How to add a button to the status bar? Pin
rryyjw15-Sep-06 6:08
rryyjw15-Sep-06 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.