I'm having a hard time getting objects stored in a typelib dll to work. Specificly, I'm trying to automate Visual Source Safe. Here's my code
<code>
$vss = new COM("SourceSafe.0") or die("Unable to connect to VSS");
$vss->Open ("c:/path/srcsafe.ini");
</code>
This code works under Visual Basic:
Dim objx As Object
Set objx = CreateObject("SourceSafe.0")
objx.Open ("c:/path/srcsafe.ini")
I've even set the ssapi.dll as a typelib_file in my ini and the constants in that dll do show up in PHP.
Here's the exact error message I get w/ the above php code:
Warning: Invoke() failed: Exception occurred.
If you have any ideas, I'd love to hear them!
p.s. the oletest script using word works fine.