Einzelnen Beitrag anzeigen

Fritzew

Registriert seit: 18. Nov 2015
Ort: Kehl
678 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Unterfunktionen in DLL

  Alt 14. Jun 2017, 08:27
Packe Deine "Unterunktionen" in eine extra Unit, und binde Diese in das DllProjekt ein....
DLL:
Delphi-Quellcode:
library mydll;

uses
  System.SysUtils,
  System.Classes,
  dllFuncs in 'dllFuncs.pas';

{$R *.res}


 procedure dllfunc(const i : integer); stdcall;
 begin
    Unterfunktion1(i);
 end;



exports
  dllfunc;

begin
end.
Unit:
Delphi-Quellcode:
unit dllFuncs;

interface


  procedure Unterfunktion1(const i : integer);

implementation

 procedure Unterfunktion1(const i : integer);
 begin

 end;

end.
Fritz Westermann
  Mit Zitat antworten Zitat