Click here to Skip to main content
15,914,016 members
Home / Discussions / COM
   

COM

 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
ghost120713-Dec-06 23:17
ghost120713-Dec-06 23:17 
AnswerRe: Calling an executable from Internet Explorer as a script? Pin
Colin Angus Mackay13-Dec-06 23:15
Colin Angus Mackay13-Dec-06 23:15 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
JacquesDP13-Dec-06 23:23
JacquesDP13-Dec-06 23:23 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
ghost120713-Dec-06 23:24
ghost120713-Dec-06 23:24 
GeneralRe: Calling an executable from Internet Explorer as a script? Pin
Colin Angus Mackay13-Dec-06 23:30
Colin Angus Mackay13-Dec-06 23:30 
QuestionPowerPoint Shape Export Pin
Topsen13-Dec-06 21:35
Topsen13-Dec-06 21:35 
QuestionDetermine virtual function table size Pin
J.B.13-Dec-06 17:21
J.B.13-Dec-06 17:21 
AnswerRe: Determine virtual function table size Pin
Roger Stoltz13-Dec-06 21:54
Roger Stoltz13-Dec-06 21:54 
Perhaps there's a trick that I'm not aware of, but I don't think you can get the size of the vtable in runtime.

If you create an interface that inherits from IUnknown, the first 12 bytes of the vtable will be the addresses of QueryInterface(), AddRef() and Release(). The next four bytes will contain the address of the first method for the new (child) interface and so on until the vtable is complete. The bytes following the vtable will contain data for the member variables, there's no "padding" or "termination" of the vtable, hence I don't think you can tell the size of it in runtime. Perhaps there's a trick when building for 'Debug', but I don't think so.

On the other hand: why do you want to know the size of the vtable? Confused | :confused:
Perhaps there's another solution for your problem.

--
Roger


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

"No one remembers a coward!" - Jan Elfström 1998
"...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above

QuestionDLL hell Pin
rockyl12-Dec-06 3:15
rockyl12-Dec-06 3:15 
AnswerRe: DLL hell Pin
ShilpiP13-Dec-06 1:37
ShilpiP13-Dec-06 1:37 
AnswerRe: DLL hell Pin
Hamid_RT5-Jan-07 21:42
Hamid_RT5-Jan-07 21:42 
QuestionExcel runtime error when using matlab excel builder generated objects Pin
juanchete11-Dec-06 21:38
juanchete11-Dec-06 21:38 
QuestionWhich C# Book is the best for Intermediete programmer. Pin
karam chandrabose10-Dec-06 20:29
karam chandrabose10-Dec-06 20:29 
AnswerRe: Which C# Book is the best for Intermediete programmer. Pin
karam chandrabose10-Dec-06 22:21
karam chandrabose10-Dec-06 22:21 
GeneralRe: Which C# Book is the best for Intermediete programmer. Pin
Hamid_RT5-Jan-07 21:43
Hamid_RT5-Jan-07 21:43 
Question_variant_t Question Pin
Gupta Suraj7-Dec-06 22:48
Gupta Suraj7-Dec-06 22:48 
GeneralRe: _variant_t Question Pin
prasad_som7-Dec-06 23:02
prasad_som7-Dec-06 23:02 
GeneralRe: _variant_t Question Pin
Gupta Suraj7-Dec-06 23:26
Gupta Suraj7-Dec-06 23:26 
AnswerRe: _variant_t Question Pin
prasad_som8-Dec-06 1:49
prasad_som8-Dec-06 1:49 
GeneralRe: _variant_t Question Pin
Gupta Suraj8-Dec-06 3:26
Gupta Suraj8-Dec-06 3:26 
GeneralRe: _variant_t Question Pin
Ed Gadziemski8-Dec-06 18:29
professionalEd Gadziemski8-Dec-06 18:29 
GeneralRe: _variant_t Question Pin
Gupta Suraj10-Dec-06 17:44
Gupta Suraj10-Dec-06 17:44 
GeneralRe: _variant_t Question Pin
prasad_som10-Dec-06 21:29
prasad_som10-Dec-06 21:29 
GeneralRe: _variant_t Question Pin
Gupta Suraj11-Dec-06 18:28
Gupta Suraj11-Dec-06 18:28 
AnswerRe: _variant_t Question Pin
prasad_som11-Dec-06 19:22
prasad_som11-Dec-06 19:22 

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.