Re: export method from DLL

From: Sven Pran (no.direct_at_mail.please)
Date: 11/30/03


Date: Sun, 30 Nov 2003 03:05:33 +0100


"Tomas Rutkauskas" wrote
> Hello,
>
>
>
> I would like to ask for some help.
>
>
>
> Some time ago I have created a program using Delphi3. Now I want to adapt
it
> to Delphi7. The problem is that creating the program I have used VCL
without
> source files and I can not install it into Delphi7.
>
> Actually I use only one function and one method (event) which returns the
> progress. I thought maybe I could add that VCL into DLL using D3 and use
> this DLL with D7. The function of the component exports successfully from
> DLL but how to export the Method (Event) of it?
>
>
>
> I have reviewed newsgroup and found Delphi genius Peter Below answer that
> Method can not be exported directly from DLL. He suggested to use
interfaces
> for it.
>
>
>
> Maybe anyone has some demo how to do that? I am not very experienced with
> Interfaces.
>
>
>
> I would be very thankful for any help.

My initial reaction is why do you not rebuild your DLL as well under D7?

But anyway, if you look up the following two references on my home page
(mainly in Norwegian, but the two references are in English) I think they
will give you what you ask for:

http://home.online.no/~svenpran/Dealerdll.htm (DLL documentation)
http://home.online.no/~svenpran/DealerI.pas (Interface)

regards Sven



Relevant Pages

  • export method from DLL
    ... The problem is that creating the program I have used VCL without ... source files and I can not install it into Delphi7. ... I thought maybe I could add that VCL into DLL using D3 and use ...
    (borland.public.delphi.language.objectpascal)
  • Re: In-memory dataset
    ... So your application will be independent from different versions of MIDAS. ... > It's a shared DLL that needs to be registered (I mean interface classes, ... > Delphi7 application, it automatically broke our D5 application. ... >> The only thing I found problematig about TClientDataSet from Delphi was ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: In-memory dataset
    ... ClientDataset is great, in general. ... It's a shared DLL that needs to be registered (I mean interface classes, ... Delphi7 application, it automatically broke our D5 application. ... > The only thing I found problematig about TClientDataSet from Delphi was ...
    (borland.public.delphi.thirdpartytools.general)
  • Debugging DLLs for 3rd party applications
    ... I am writing a DLL for a third party application. ... so it doesn't load the DLL itself - I ... DLL to it to allow me to debug the code of the DLL (using Delphi7 ...
    (comp.lang.pascal.delphi.misc)
  • Re: The difference between Reference and Component?
    ... My project is using dll which is listed under References. ... Any COM component can provide implementation for multiple COM Interfaces. ... Any component can also supply multiple controls, ... In general when VB loads the References list it merely reads the Registry ...
    (microsoft.public.vb.general.discussion)