Click here to Skip to main content
15,887,027 members
Home / Discussions / COM
   

COM

 
QuestionCOM compiler errors Pin
melwyn29-May-06 9:08
melwyn29-May-06 9:08 
AnswerRe: COM compiler errors Pin
Steve S29-May-06 23:03
Steve S29-May-06 23:03 
GeneralRe: COM compiler errors Pin
melwyn30-May-06 1:44
melwyn30-May-06 1:44 
GeneralRe: COM compiler errors Pin
Steve S30-May-06 4:14
Steve S30-May-06 4:14 
GeneralRe: COM compiler errors Pin
Steve S30-May-06 4:22
Steve S30-May-06 4:22 
GeneralRe: COM compiler errors Pin
melwyn30-May-06 5:37
melwyn30-May-06 5:37 
GeneralRe: COM compiler errors Pin
Steve S30-May-06 6:02
Steve S30-May-06 6:02 
Questionvoid* and void** Pin
HakunaMatada28-May-06 21:01
HakunaMatada28-May-06 21:01 
Hi,

I have created an inproc COM server dll which displays a Window. WTL has been used to create the Window. This window houses a custom built TreeView control.

I have created a client which uses this COM Server. the functions which inserts child treenodes is defined in the erver thus:

IDL
[id(3), helpstring("method InsertTreeChild"), local] HRESULT InsertTreeChild([in] BSTR Text,[in] BSTR Data,[in,unique] void* ParentItem,[out] void** ChildItem);

.h
STDMETHOD(InsertTreeChild)(BSTR Text, BSTR Data, void* ParentItem, void** ChildItem);

Now how do I set ChildItem so that the address of Child item is passed to the Client. Currently I am doine something like..

*ChildItem= (void*) treeNode ;

but the value of ChildItem is 0x000000 when the function returns to the client although it gets set in the Server.

Can anyone explain why this is happening?

---
With best regards,
A Manchester United Fan

The Genius of a true fool is that he can mess up a foolproof plan!
AnswerRe: void* and void** Pin
Roger Stoltz28-May-06 21:33
Roger Stoltz28-May-06 21:33 
GeneralRe: void* and void** [modified] Pin
HakunaMatada28-May-06 22:24
HakunaMatada28-May-06 22:24 
GeneralRe: void* and void** [modified] Pin
Roger Stoltz28-May-06 22:42
Roger Stoltz28-May-06 22:42 
GeneralRe: void* and void** [modified] Pin
HakunaMatada29-May-06 0:12
HakunaMatada29-May-06 0:12 
AnswerRe: void* and void** [modified] Pin
Roger Stoltz29-May-06 0:48
Roger Stoltz29-May-06 0:48 
GeneralRe: void* and void** [modified] Pin
HakunaMatada29-May-06 1:08
HakunaMatada29-May-06 1:08 
QuestionHow to register shell extension DLL? Pin
Rostfrei28-May-06 20:55
Rostfrei28-May-06 20:55 
AnswerRe: How to register shell extension DLL? Pin
_AnsHUMAN_ 28-May-06 23:07
_AnsHUMAN_ 28-May-06 23:07 
AnswerRe: How to register shell extension DLL? Pin
Michael Dunn29-May-06 7:23
sitebuilderMichael Dunn29-May-06 7:23 
QuestionInprocServer32 Key Pin
Richard Andrew x6428-May-06 13:57
professionalRichard Andrew x6428-May-06 13:57 
AnswerRe: InprocServer32 Key Pin
Michael Dunn28-May-06 18:57
sitebuilderMichael Dunn28-May-06 18:57 
Questionexport data to Database Pin
viji]28-May-06 2:15
viji]28-May-06 2:15 
QuestionWIA (Windows Image Acquisition) API Pin
opl25-May-06 10:27
opl25-May-06 10:27 
AnswerRe: WIA (Windows Image Acquisition) API Pin
Renjith Ramachandran26-May-06 4:50
Renjith Ramachandran26-May-06 4:50 
Question_bstr_t and MS Security update Pin
ChrisLang25-May-06 5:43
ChrisLang25-May-06 5:43 
AnswerRe: _bstr_t and MS Security update Pin
Michael Dunn25-May-06 8:45
sitebuilderMichael Dunn25-May-06 8:45 
GeneralRe: _bstr_t and MS Security update Pin
ChrisLang25-May-06 10:30
ChrisLang25-May-06 10:30 

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.