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

COM

 
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 
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 
TechyMaila wrote:
Ok, so then what member of the VARIANT type can I use to store a pointer?


Well, to put it simple: you don't.
Why? Because it's a design issue. Your server should behave like a black box that solves a well defined problem. How the box looks inside should be hidden from "users" or clients. By exposing internal pointers to your client, you are putting some of the responsabilities of the server on the client which is undesirable.

I suggest you use an index instead.
You could even have an interface that enumerates the tree nodes, e.g. IEnumTreeNodes, that provides you with an interface for each tree node letting you manipulate each node, e.g. ITreeNode.

Perhaps I've misunderstood your problem. If this is the case, post again and explain it further.

Hope this helps
--
Roger


It's supposed to be hard, otherwise anybody could do it!

Regarding CodeProject: "resistance is pointless; you will be assimilated"

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 
AnswerRe: _bstr_t and MS Security update Pin
ChrisLang25-May-06 11:17
ChrisLang25-May-06 11:17 
GeneralRe: _bstr_t and MS Security update Pin
Steve S25-May-06 22:16
Steve S25-May-06 22:16 
Questionproblem in sub report Pin
raghu sahay25-May-06 4:10
raghu sahay25-May-06 4:10 

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.