Click here to Skip to main content
15,891,567 members
Home / Discussions / COM
   

COM

 
GeneralMultiThreaded OutProc Server Pin
TroLoo22-Nov-03 7:22
TroLoo22-Nov-03 7:22 
GeneralRe: MultiThreaded OutProc Server Pin
valikac24-Nov-03 5:49
valikac24-Nov-03 5:49 
Generalneutral threading in XP vs. Win2000 Pin
jremignanti21-Nov-03 11:18
jremignanti21-Nov-03 11:18 
QuestionHow can i change the dllhost appbase??? Pin
Ik@20-Nov-03 23:59
Ik@20-Nov-03 23:59 
QuestionHow do I change the program id within the com project Pin
WoodyMou19-Nov-03 5:21
WoodyMou19-Nov-03 5:21 
AnswerRe: How do I change the program id within the com project Pin
Steve S19-Nov-03 5:44
Steve S19-Nov-03 5:44 
QuestionSame method and property name? Pin
snappa19-Nov-03 2:29
snappa19-Nov-03 2:29 
AnswerRe: Same method and property name? Pin
Vi221-Nov-03 2:31
Vi221-Nov-03 2:31 
Looks like the JScript use the different flags of IDispatch::Invoke function in your cases.

/* Flags for IDispatch::Invoke */
#define DISPATCH_METHOD 0x1
#define DISPATCH_PROPERTYGET 0x2
#define DISPATCH_PROPERTYPUT 0x4
#define DISPATCH_PROPERTYPUTREF 0x8

The JScript uses the DISPATCH_PROPERTYGET flag in first case (window.external.Foo), and the DISPATCH_METHOD in second one (window.external.Foo()). For example, VBScript doesn't separate these cases and uses the DISPATCH_METHOD | DISPATCH_PROPERTYGET flag (which is valid).

As a rule, the default implementation of IDispatch will launch the existing function (either method or propget) in case of DISPATCH_METHOD|DISPATCH_PROPERTYGET. But it call only required function in case of DISPATCH_METHOD or DISPATCH_PROPERTYGET.

So the solution is the changing the passed flags from DISPATCH_METHOD or DISPATCH_PROPERTYGET into DISPATCH_METHOD | DISPATCH_PROPERTYGET and the calling of default Invoke-handler. Because the [propget] member and the [method] member with [retval] parameter are very similar.

HTH

With best wishes,
Vita
GeneralMessages in ActiveX components Pin
Anonymous18-Nov-03 10:06
Anonymous18-Nov-03 10:06 
GeneralRe: Messages in ActiveX components Pin
Anonymous18-Nov-03 10:32
Anonymous18-Nov-03 10:32 
GeneralCOM instances Pin
Chiew Heng Wah17-Nov-03 19:08
Chiew Heng Wah17-Nov-03 19:08 
GeneralRe: COM instances Pin
Giles20-Nov-03 9:55
Giles20-Nov-03 9:55 
Generalmore string trouble... Pin
rajdawg17-Nov-03 15:35
rajdawg17-Nov-03 15:35 
GeneralRe: more string trouble... Pin
Vi218-Nov-03 0:39
Vi218-Nov-03 0:39 
GeneralRe: more string trouble... Pin
Mike Dimmick20-Nov-03 2:08
Mike Dimmick20-Nov-03 2:08 
GeneralRe: more string trouble... Pin
rajdawg20-Nov-03 13:41
rajdawg20-Nov-03 13:41 
GeneralDatabase communication Pin
Moonspellwizard17-Nov-03 0:03
Moonspellwizard17-Nov-03 0:03 
GeneralRe: Database communication Pin
Ivor S. Sargoytchev22-Nov-03 7:54
Ivor S. Sargoytchev22-Nov-03 7:54 
GeneralUpgrading a COM interface Pin
Jeremy Pullicino16-Nov-03 21:13
Jeremy Pullicino16-Nov-03 21:13 
GeneralRe: Upgrading a COM interface Pin
Abhishek Srivastava16-Nov-03 22:01
Abhishek Srivastava16-Nov-03 22:01 
GeneralRe: Upgrading a COM interface Pin
Steve S16-Nov-03 23:12
Steve S16-Nov-03 23:12 
GeneralDirectShow (DirectX) Pin
TFB15-Nov-03 7:38
TFB15-Nov-03 7:38 
GeneralRe: DirectShow (DirectX) Pin
Chiew Heng Wah17-Nov-03 19:17
Chiew Heng Wah17-Nov-03 19:17 
GeneralRe: DirectShow (DirectX) Pin
TFB18-Nov-03 6:34
TFB18-Nov-03 6:34 
Generalmessage box Pin
Ritwik Sanyal14-Nov-03 21:03
Ritwik Sanyal14-Nov-03 21:03 

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.