[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-scriptlets
Subject:    Using byref parameters with WSC methods.
From:       "Jeremiah S. Talkar" <JeremiahTalkar () HOTMAIL ! COM>
Date:       2001-04-11 22:39:23
[Download RAW message or body]


I defined a method for my WSC component, generated the TLB and looked at
the method signature in OleView. The arguments are always listed as [in]
VARIANT.

First Question:

How do I pass parameters by reference. I tried using the byref parameter in
the WSC function defining the method but the TLB still shows the parameter
as [in] VARIANT.


Second Question:

Within the WSC method, I assign new values to the various parameters. Since
these parameters are defined as [in], the client should not see the updated
values.

This is the behaviour I am seeing when I invoke the WSC method from a VC
client using the IDispatch::Invoke method.

In a VB Client, the client actually sees the updated values from the WSC
method.

Is anyone aware of why this happens and what magic the VB runtime is
performing?

Jeremiah S. Talkar



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic