🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.com.activex.using
2 messages
2 total messages Started by Yogi Yang 007 Fri, 25 Apr 2008 08:05
Importing ActiveX DLL
#140
Author: Yogi Yang 007
Date: Fri, 25 Apr 2008 08:05
17 lines
1343 bytes
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
Re: Importing ActiveX DLL
#162
Author: Toni
Date: Fri, 27 Jun 2008 13:07
50 lines
2312 bytes
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" <yogiyang007@gmail.com> schrieb im Newsbeitrag 
news:48119093@newsgroups.borland.com...
> 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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads