Question

I'm a complete newbie to Windows and COM programming, trying to use com4j in order to call a COM object from Java.

Com4j generates Java interfaces from COM definitions "often found in .ocx, .dll, .exe, and/or .tlb files" . It was easy for me to locate the .ocx file of my target COM object, but I have no clue regarding the standard interface iStream.

Microsoft's documentation mentions OLE32.DLL ( c:\Windows\Windows32\Ole32.dll ?) , but neither the com4j generator nor oleviewer succeed in opening this file.

Any hints?

Was it helpful?

Solution

It looks like it is defined in comsvcs.dll .

OTHER TIPS

The documentation you linked to references Objidl.idl. com4j might be able to process IDL files.

Alternatively you could try compiling the IDL into a TLB using MIDL: http://msdn.microsoft.com/en-us/library/aa367372(VS.85).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top