Click here to Skip to main content
16,017,100 members
Home / Discussions / COM
   

COM

 
QuestionError code 0x80010005 mean what and how to avoid it? Pin
i--19-May-03 22:07
i--19-May-03 22:07 
AnswerRe: Error code 0x80010005 mean what and how to avoid it? Pin
Anonymous27-May-03 22:19
Anonymous27-May-03 22:19 
Generalcreation of client of an EXE Com server . Pin
satishsilla19-May-03 18:14
satishsilla19-May-03 18:14 
GeneralRe: creation of client of an EXE Com server . Pin
valikac20-May-03 8:50
valikac20-May-03 8:50 
GeneralRe: creation of client of an EXE Com server . Pin
satishsilla21-May-03 23:34
satishsilla21-May-03 23:34 
GeneralProblems passing doubles in VB control to C++ Pin
mgreene16-May-03 2:43
mgreene16-May-03 2:43 
General[Message Deleted] Pin
imdx8016-May-03 0:43
imdx8016-May-03 0:43 
GeneralRe: Connection Points and [out] parameters Pin
geo_m26-May-03 7:41
geo_m26-May-03 7:41 
Yes it can. But I can help you only with ATL - don't have a clue how to do it with MFC. The events are in fact standard methods as any other, so you have just to mark the parameter as [out] or [out,retval]. That's all in IDL.

But if you are using ATL, there's a little need to change the generated Fire_OnMyEvent method. Understanding what's going on inside the method is the key to the success Wink | ;)

On beginning there's created a new array of CComVariants. Later on, all parameters are copied(!) to this array. And you need to change exactly this behavior - there are several ways...

What you can use is instead of copying the value, use the already existing variant in an array and turn him to the reference to your out parameter (VT_BYREF flag can be handy). But any other method can be also usefull and working - it's up to you to decide how you want to do it.
GeneralCOM Client problem Pin
YSRao14-May-03 1:15
YSRao14-May-03 1:15 
GeneralRe: COM Client problem Pin
valikac14-May-03 8:27
valikac14-May-03 8:27 
GeneralRe: COM Client problem Pin
Anonymous14-May-03 19:07
Anonymous14-May-03 19:07 
GeneralRe: COM Client problem Pin
balcn14-May-03 8:51
balcn14-May-03 8:51 
GeneralRe: COM Client problem Pin
Anonymous14-May-03 18:42
Anonymous14-May-03 18:42 
GeneralRe: COM Client problem Pin
valikac14-May-03 19:55
valikac14-May-03 19:55 
GeneralRe: COM Client problem Pin
balcn16-May-03 8:05
balcn16-May-03 8:05 
GeneralRe: COM Client problem Pin
Dudi Avramov18-May-03 23:11
Dudi Avramov18-May-03 23:11 
GeneralHelp : About Active Document Pin
twinkle_star13-May-03 16:59
twinkle_star13-May-03 16:59 
QuestionDifference between Webbrowser contorl and InternetExplorer object ? Pin
GriffonRL13-May-03 3:51
GriffonRL13-May-03 3:51 
QuestionCan a method of COM-server return a string pointer Pin
Bash12-May-03 19:52
Bash12-May-03 19:52 
AnswerRe: Can a method of COM-server return a string pointer Pin
justanotherprogrammer12-May-03 21:13
justanotherprogrammer12-May-03 21:13 
GeneralRe: Can a method of COM-server return a string pointer Pin
valikac13-May-03 16:01
valikac13-May-03 16:01 
GeneralRe: Can a method of COM-server return a string pointer Pin
Renjith Ramachandran15-May-03 5:57
Renjith Ramachandran15-May-03 5:57 
Generalactivex parent Pin
Shotgun12-May-03 15:28
Shotgun12-May-03 15:28 
GeneralSAFEARRAY question Pin
Stephane Routelous12-May-03 8:15
Stephane Routelous12-May-03 8:15 
GeneralRetrieving Pointer to IOleClientSite Pin
GeorgT12-May-03 4:15
GeorgT12-May-03 4:15 

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.