![]() |
Re: DLLs
Show ist TForm1.Show. Nenn die Prozedur anders.
|
Re: DLLs
Zitat:
Wenn ich Button1.Caption := '...'; machen, dann geht das auch nicht !!! Zitat:
|
Re: DLLs
Ich meinte, dass du die Funktion in der DLL umbenennen solltest (zum Beispiel 'show' -> 'Test').
Edit: Die Funktion ShowMessage ist in der Unit Dialogs deklariert (muss in in uses-Liste aufgenommen werden). |
Re: DLLs
Zitat:
Wenn ich schowmessage bei uses in der DLL reinschreibe: Zitat:
Zitat:
DLL:
Delphi-Quellcode:
dann kommt der Error:
library rechnen;
{ Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. This applies to all strings passed to and from your DLL--even those that are nested in records and classes. ShareMem is the interface unit to the BORLNDMM.DLL shared memory manager, which must be deployed along with your DLL. To avoid using BORLNDMM.DLL, pass string information using PChar or ShortString parameters. } uses SysUtils, Classes, Messages, dialogs; {$R *.res} function addiere(zahl1, zahl2: integer): integer; stdcall; begin result := zahl1+zahl2; end; procedure test; stdcall; begin showmessage('hi!'); end; exports addiere, test; begin end. [Fatal Error] F2039 Could not create output file 'rechnen.dll' |
Re: DLLs
Die Unit, in der die Funktion ShowMessasge deklariert ist, heißt dialogs.pas.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:19 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz