Click here to Skip to main content
16,010,553 members
Home / Discussions / COM
   

COM

 
GeneralRe: ActiveX Threading Pin
Anthony98871-Jun-06 3:52
Anthony98871-Jun-06 3:52 
QuestionRe: ActiveX Threading Pin
Roger Stoltz1-Jun-06 4:07
Roger Stoltz1-Jun-06 4:07 
GeneralRe: ActiveX Threading Pin
Stephen Hewitt1-Jun-06 13:44
Stephen Hewitt1-Jun-06 13:44 
GeneralRe: ActiveX Threading Pin
Anthony98875-Jun-06 6:02
Anthony98875-Jun-06 6:02 
Questioncom and excel Pin
mav@octaval31-May-06 4:41
mav@octaval31-May-06 4:41 
AnswerRe: com and excel Pin
Laxman Auti5-Jun-06 21:09
Laxman Auti5-Jun-06 21:09 
QuestionNewbie need help with Activex Control with IE Pin
dude_445316929-May-06 21:32
dude_445316929-May-06 21:32 
QuestionHow to set style property of HTMLElement in dom? Pin
at2000129-May-06 17:06
at2000129-May-06 17:06 
AnswerRe: How to set style property of HTMLElement in dom? Pin
at2000129-May-06 17:52
at2000129-May-06 17:52 
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 
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 
TechyMaila wrote:
what can I useto pass the address of HTREEITEM


If I've understood your problem correctly, you actually don't need to pass the address. You only need a way to keep track of the node that you got from the previous call to InsertChild(), right?

What I suggested in my previous post was to use an integer to be able to refer to the node you got from InsertChild().
An ugly solution, which I don't recommend, is to pass the address as a long and type cast it to a HTREEITEM pointer. This will work on systems that are 32-bit, but will surely fail if built for 64-bit systems, in other words not a very good solution. Dead | X|
Always design with distribution in mind. It will make your design better and protect you from unwanted surprises when your software is used where you didn't think it would be used.

A better solution is to still pass a 32-bit integer through the interface, but the integer is mapped to a HTREEITEM pointer that you keep in an internal map inside the server.
No need for overkill here, simply mask the HTREEITEM address with 0xffffffff to get the 32-bit identifier.

--
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 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 

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.