Click here to Skip to main content
15,917,795 members
Home / Discussions / COM
   

COM

 
GeneralRe: Inheriting CoClass methods. Pin
aatul3-May-07 3:24
aatul3-May-07 3:24 
GeneralRe: Inheriting CoClass methods. Pin
CPallini3-May-07 3:40
mveCPallini3-May-07 3:40 
Questionfatal error C1083:Cannot open source file:'.\BSTester_p.c':No such file or directory Pin
Ankit Aneja2-May-07 3:06
Ankit Aneja2-May-07 3:06 
QuestionPassing a structure through VARIANT from VC++ Client to COM Server [modified] Pin
georgekjolly2-May-07 1:40
georgekjolly2-May-07 1:40 
AnswerRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
CPallini2-May-07 1:54
mveCPallini2-May-07 1:54 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
georgekjolly2-May-07 2:21
georgekjolly2-May-07 2:21 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Michael Dunn2-May-07 8:00
sitebuilderMichael Dunn2-May-07 8:00 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
CPallini2-May-07 9:53
mveCPallini2-May-07 9:53 
I have to admint (and I don't like it a bit) that I underestimated you problem (and the fact that memory have to cross process boundaries). Anyway, there are, of course, solutions. You can:
(1) Take a drastic approach, coverting you struct into a COM object, which can be created and passed to other COM objects without problems.
(2) Copy the content (memory) of your struct to a SAFEARRAY (even to a BSTR, a bit ugly, but AFAIK, working) and pass it to the out-of process COM server that can claim the struct back from the memeory content of the SAFEARRY (or BSTR!).

I think there are, as well, other solutions, but unfortunately, I can't remember, I cant't recall them...

Smile | :)


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Lim Bio Liong6-May-07 1:03
Lim Bio Liong6-May-07 1:03 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Lim Bio Liong7-May-07 5:40
Lim Bio Liong7-May-07 5:40 
Questionconverting COM object to an ActiveX control Pin
Abu Mami1-May-07 2:26
Abu Mami1-May-07 2:26 
AnswerRe: converting COM object to an ActiveX control Pin
CPallini1-May-07 10:15
mveCPallini1-May-07 10:15 
GeneralRe: converting COM object to an ActiveX control Pin
Abu Mami1-May-07 20:13
Abu Mami1-May-07 20:13 
GeneralRe: converting COM object to an ActiveX control Pin
CPallini1-May-07 21:28
mveCPallini1-May-07 21:28 
GeneralRe: converting COM object to an ActiveX control Pin
Abu Mami2-May-07 2:59
Abu Mami2-May-07 2:59 
QuestionOLE DB Notification Pin
x_yan_y27-Apr-07 22:18
x_yan_y27-Apr-07 22:18 
QuestionDOM object transfers from C# to C++ Pin
DaveLand27-Apr-07 15:51
DaveLand27-Apr-07 15:51 
QuestionBeginner In COM where to start first? Pin
viral_umang@hotmail.com26-Apr-07 20:26
viral_umang@hotmail.com26-Apr-07 20:26 
AnswerRe: Beginner In COM where to start first? Pin
Roger Stoltz26-Apr-07 21:16
Roger Stoltz26-Apr-07 21:16 
AnswerRe: Beginner In COM where to start first? Pin
lafleon27-Apr-07 9:00
lafleon27-Apr-07 9:00 
AnswerRe: Beginner In COM where to start first? Pin
User 21559727-Apr-07 12:04
User 21559727-Apr-07 12:04 
AnswerRe: Beginner In COM where to start first? Pin
Michael Dunn28-Apr-07 18:26
sitebuilderMichael Dunn28-Apr-07 18:26 
AnswerRe: Beginner In COM where to start first? Pin
georgekjolly2-May-07 1:50
georgekjolly2-May-07 1:50 
QuestionWord data transfer Pin
Aggressor26-Apr-07 1:05
Aggressor26-Apr-07 1:05 
AnswerRe: Word data transfer Pin
kanduripavan15-May-07 0:37
kanduripavan15-May-07 0:37 

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.