Well if I have a func like this ( im trying to get it to work with the
simplist case now )
HRESULT test( [ out, ref ] unsigned char *n );
I can call that from PERL like
use Win32::OLE;
use Win32::OLE::Variant;
$obj = Win32::OLE->new( "comobjectname" );
$n = Variant( VT_UI1 | VT_BYREF, 0 );
$ob
I'm not sure, but try:
$str = new VARIANT($obj->Get_Version_Str() , VT_STR | VT_BYREF );
or simply:
$str = $obj->Get_Version_Str();
Also, are you sure that release() is part of your object definition?
> $obj->Release();
Alain
On Wed, Sep 19, 2001 at 08:50:52AM +0100, park wrote:
> Im afraid I
Im afraid I dont know VB script so I cant tell you, to call it from C you
would use:
ITest *ptr = CoCreateObject( CLSID_Test.. )
char str[ 1024 ];
ITest->Get_Version_Str( str, sizeof( str ) );
// str contains the version string
ITest->Release();
Last night I looked through the php source
Do you have a VB script showing how it connects to your COM object?
Alain
-Original Message-
From: park [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 3:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] COM - accessing pointer variables
I have a method into my COM object spe