[Prev][Next][Index][Thread]

Need Help with OLE



I've got myself a little confused on how to approach a OLE Automation
problem.

The OLE/COM class/object that I need to access is embedded inside of a .exe,
not a .dll. I've got access to the .odl and the .tlb files that contain the
description of the library and dispinterfaces. Can I use either of these two
files to create a client-side application (hopefully automatically)? If not,
I'm not getting (yet) how do define the interface file in Dylan, given the
.odl file.

Hopefully a Dylan/OLE guru can give me a jump-start on this.

Here's a snippet of the ODL file:
----------------------------------------------------------------------------
--------------------------------------------------
// OBDASvr.odl : type library source for OBDASvr.exe


[ uuid(77A2D181-3491-11D0-8AC8-8516D4C68E75), version(1.0) ]
library OBDASvr
{
 importlib("stdole32.tlb");

 //  Primary dispatch interface for COBDASvrDoc

 [ uuid(77A2D182-3491-11D0-8AC8-8516D4C68E75) ]
 dispinterface IOBDASv
 {
  properties:

  methods:

   [id(1)] BSTR IGetEntityName(BSTR strParam);
   [id(2)] BSTR IGetParameterName(BSTR strParam);

   *[snip]*

 };

 //  Class information for COBDASvrDoc

 [ uuid(77A2D180-3491-11D0-8AC8-8516D4C68E75) ]
 coclass Document
 {
  [default] dispinterface IOBDASv;
 };
};
----------------------------------------------------------------------------
--------------------------------------------------


Thanks,

Ron Franke-Polz
ron.franke-polz@honeywell.com






Follow-Ups: