I want to import an activeX DLL in a project and use it. I have imported
the DLL and Delhi has generated an Import Unit for that DLL and added it
to my project. I have not installed it to the Tools Palette as this DLL
does not have any user interface.
Now how can I use it as I am not able to call any of its methods or set
its property?
I have added the modules name to uses clause but I am not able to use it.
Help please.
Regards,
Yogi Yang
XpdfPS_ = IXpdfPS; <-- This is the name. It can be
whatever...depends of your DLL
// *********************************************************************//
// Schnittstelle: IXpdfPS
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {35301E40-66A2-11D7-BD2E-08004608C318}
// *********************************************************************//
IXpdfPS = interface(IDispatch)
etc...........a lot of code follow...
Now in your code....
Procedure Use_mydll;
Var
xpdf : XpdfPS_;
Begin
XPDF:=CoXpdfPS_.Create;
Now you can use it.....
xpdf..loadfile.... or whatever this DLL do....read the documentytion of
the iported DLL.
Regards
Toni
"Yogi Yang 007" <yogiy...@gmail.com> schrieb im Newsbeitrag
news:4811...@newsgroups.borland.com...