🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.com.activex.using
Article #162

Re: Importing ActiveX DLL

#162
From: 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 
Technical Details
Message-ID: <4864e690@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <48119093@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 123df9,f162bc9be1b4f6b7
X-Google-Attributes: gid123df9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: <Toni>
Newsgroups: borland.public.delphi.com.activex.using
References: <48119093@newsgroups.borland.com>
Subject: Re: Importing ActiveX DLL
Date: Fri, 27 Jun 2008 15:07:59 +0200
Lines: 52
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3264
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3264
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 84.73.235.51
Message-ID: <4864e690@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1214572176 84.73.235.51 (27 Jun 2008 06:09:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail