Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Importing ActiveX DLL

3 views
Skip to first unread message

Yogi Yang 007

unread,
Apr 25, 2008, 4:05:34 AM4/25/08
to
Hello,

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

Toni

unread,
Jun 27, 2008, 9:07:59 AM6/27/08
to
Check your imported unit....there you will find the "name" of the imported
DLL
At the begining something "similar" as....

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...

0 new messages