I am trying to code a module using COM objects from Peachtree Acccounting's SDK. I can get to other applications (Word, Excel, IE, etc.) using COM, but can't seem to instantiate Peachtree's objects, and all of Peachtree's examples are in VB and the like, and don't translate well (at least while I'm the translator).
The following code blows up:
$modul = "PeachtreeAccounting.Application";
$peachy = new COM($modul);
with the following error:
Failed to create COM object `PeachtreeAccounting.Application': Invalid syntax
The following code does not blow up:
$modul = "PeachtreeAccounting.LoginSelector.1";
$peachy = new COM($modul);
although the object it instantiates does not seem to all there. The "PeachtreeAccounting.LoginSelector.1" was pulled from a registry search to see what my system knew about Peachtree objects.
Any suggestions would be much appreciated, since I am at the hair pulling stage and there is not much left to begin with.
Thanks,
Barry