> my question, however, is how does perl interact with ole
> (IDispatch) as far
> as strings are concerned. I'm not expecting a long answer... what i would
> love to know is what kind of type i can expect to be passed to my function
> when i call the "writeStringToFile" function below (i.e. BSTRING,
> LPBSTRING,
> VARIANT, or something else?)
>
> use Win32::OLE;
>
> my $class = "MyFirstATL.myFirstClass.1";
> my $myFirstComObject = new Win32::OLE($class) || die "could not
> open class:
> $class";
>
> $myFirstComObject->writeStringToFile("xxx");

Have your tried:

use Win32::OLE::Variant;
my $var = Variant(VT_BSTR, 'xxxx');
$myFirstComObject->writeStringToFile($var);

According to the Win32::OLE::Variant documentation,
that _should_ work (note the emphasis on 'should' :)

Regards,
Chris

If you were supposed to understand it,
we wouldn't call it code.
[EMAIL PROTECTED]


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to