"Invalid procedure call or argument" VBScript calling C# COM method -


i have vbscript app calling com-registered c# objects. able pass in com object com call, receive either primitive or com object back, can't both @ same time! if try retrieving value call while passing in com object, exception "invalid procedure call or argument"

dim foo set foo = server.createobject("foo") foo.setproperty(1)  dim bar set bar = server.createobject("bar") dim return set return = bar.do(foo) 

if last line bar.do(foo) works fine.

also, whether

set return = bar.do(foo) 

or

return = bar.do(foo) 

causes same error in case.

my com classes classes methods exposed, , implementing interface. i'm getting error dealing ints, longs, , strings.

i'm bit rusty in area if method returning int or string shouldn't code read:

return = bar.do(foo) 

instead of

set return = bar.do(foo) 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -