Hello Windows Squeakers,
someone asked about a COM library wrapper in Squeak. So I started a little test to check if it's possible to wrap the ole32.dll using FFI. A first basic version is attached. It' very basic and just tries to wrap the COM GUID/ProgID behavior.
Unfortunately I have a side effect when I use MS Office:
COMGUID fromProgID: 'Excel.Application'
returns a valid GUID and
COMGUID fromProgID: 'Word.Application'
returns a zero-GUID (caused by a failing call to) if use "^result" at the end of the method COMGUID>>fromString:.
If I change this method to return: "^result asString" I get a valid GUID for Word and a zero-GUID for Excel.
Is anyone able to reproduce this? If so any ideas about the reason?
To Andreas: Havent recently looked at the VM sources. When and how (parameters) is COM initialized in the windows VM (calls to CoInitialize() or CoInitializeEx())?
Thx Torsten
Hi Torsten,
To Andreas: Havent recently looked at the VM sources. When and how (parameters) is COM initialized in the windows VM (calls to CoInitialize() or CoInitializeEx())?
CoInitialize() is called first thing in the morning - it is part of the initial Squeak startup sequence since COM is required in various places.
Cheers, - Andreas
----- Original Message ----- From: "Torsten Bergmann" astares@gmx.de To: squeak-dev@lists.squeakfoundation.org Sent: Wednesday, August 04, 2004 3:00 PM Subject: Wrapping COM
Hello Windows Squeakers,
someone asked about a COM library wrapper in Squeak. So I started a little test to check if it's possible to wrap the ole32.dll using FFI. A first basic version is attached. It' very basic and just tries to wrap the COM GUID/ProgID behavior.
Unfortunately I have a side effect when I use MS Office:
COMGUID fromProgID: 'Excel.Application'
returns a valid GUID and
COMGUID fromProgID: 'Word.Application'
returns a zero-GUID (caused by a failing call to) if use "^result" at the end of the method COMGUID>>fromString:.
If I change this method to return: "^result asString" I get a valid GUID for Word and a zero-GUID for Excel.
Is anyone able to reproduce this? If so any ideas about the reason?
To Andreas: Havent recently looked at the VM sources. When and how (parameters) is COM initialized in the windows VM (calls to CoInitialize() or CoInitializeEx())?
Thx Torsten
-- NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler! GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------------- ----
squeak-dev@lists.squeakfoundation.org