Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi DLL in Konsolen-Applikation einbinden (https://www.delphipraxis.net/16133-dll-konsolen-applikation-einbinden.html)

nordfighter 11. Feb 2004 09:06


DLL in Konsolen-Applikation einbinden
 
Hallo zusammen

Ich bins mal wieder... :-D

Wie binde ich eine DLL in eine Konsolen-Applikation ein?
mit implementation ist es nicht möglich...

wäre um antworten froh....;-)


gruzz
nf

nordfighter 11. Feb 2004 10:02

Re: DLL in Konsolen-Applikation einbinden
 
ja sorry.... war keine absicht... :wall:

Luckie 11. Feb 2004 10:25

Re: DLL in Konsolen-Applikation einbinden
 
Na gneau wie in einer Anwendung mit GUI auch.

nordfighter 11. Feb 2004 10:33

Re: DLL in Konsolen-Applikation einbinden
 
ne. geht nicht....

implementation wird als fehler gekennzeichnet..... :cry:

Chewie 11. Feb 2004 10:37

Re: DLL in Konsolen-Applikation einbinden
 
Pack den implementation-Abschnitt doch in eine extra Unit, die du inkludierst.

nordfighter 11. Feb 2004 10:52

Re: DLL in Konsolen-Applikation einbinden
 
wie meinst du das??????

sakura 11. Feb 2004 10:57

Re: DLL in Konsolen-Applikation einbinden
 
Eine eigene Unit ist nicht nötig, einfach so:

Delphi-Quellcode:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

procedure Foo(Dummy: Integer); stdcall; external 'foo.dll';

begin
  { TODO -oUser -cConsole Main : Insert code here }
end.
...:cat:...

crusty 12. Feb 2004 09:36

Re: DLL in Konsolen-Applikation einbinden
 
kannst auch dynamisch machen... LoadLibrary und GetProcAddress.. auf assarbads page gibts da n DLL tut falls du nicht weisst wies geht und zu fault bist in der hilfe zu wuehlen ;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz