Ĺadny brzuch
Prosiłbym o jakiś prosty przykład ( krok po kroku ).
Jakie opcje kompilatora trzeba ustawić aby zrobił się plik dll a nie exe? ( obojętnie czy w Delphi, Builder, Visual - jakiś dowolny przykład ).
Dawno nic nie robiłem w Borlandach ale jak się tam tworzy projekt to się wybiera chyba czy to ma być aplikacja okienkowa, konsolowa czy dll czy może jeszcze coś innego :)
http://www.flipcode....atingdlls.shtml
W Delphi:library nazwa_dlla; function costam:integer; stdcall; begin end; exports costam; end.
http://compzone.webk...ex.php?show=130
Witam
W Delphi:library nazwa_dlla; function costam:integer; stdcall; begin end; exports costam; end.
Witam
Po co stdcall?
i zapomniałeś o begin :P
Pozdrawiam LOL! Nigdzie trzeba begin ;)
Stdcall jest dla zachowania kompatybilności użycia dll-a:
Delphi routines can use the calling conventions pascal (the
Delphi 1 default), register (the default for Delphi 2-5), cdecl
(the default used by C/C++ compilers), stdcall (the default used
by the Windows API). There is a fifth one: safecall, which
is only used in the context of interface methods. z http://www.swissdelp...ode.php?id=1233
1. stdcall użyte jest po to aby dll`ka napisana w delphi mogła współpracować z progiem napisanym w innym języku
2. library Project1; uses Windows; //<-- wystarczy tylko ten moduł procedure oko; stdcall; begin MessageBox(0, 'bleeeee!', 'Jestem Dll`ką!', MB_OK); end; exports // eksportuj procedurę oko; begin end.
LOL! Nigdzie trzeba begin ;)
Stdcall jest dla zachowania kompatybilności użycia dll-a:
z http://www.swissdelp...ode.php?id=1233
zanotowane.pl doc.pisz.pl pdf.pisz.pl zsf.htw.pl
Jakie opcje kompilatora trzeba ustawić aby zrobił się plik dll a nie exe? ( obojętnie czy w Delphi, Builder, Visual - jakiś dowolny przykład ).
Dawno nic nie robiłem w Borlandach ale jak się tam tworzy projekt to się wybiera chyba czy to ma być aplikacja okienkowa, konsolowa czy dll czy może jeszcze coś innego :)
http://www.flipcode....atingdlls.shtml
W Delphi:library nazwa_dlla; function costam:integer; stdcall; begin end; exports costam; end.
http://compzone.webk...ex.php?show=130
Witam
W Delphi:library nazwa_dlla; function costam:integer; stdcall; begin end; exports costam; end.

Witam
Po co stdcall?
i zapomniałeś o begin :P
Pozdrawiam LOL! Nigdzie trzeba begin ;)
Stdcall jest dla zachowania kompatybilności użycia dll-a:
Delphi routines can use the calling conventions pascal (the
Delphi 1 default), register (the default for Delphi 2-5), cdecl
(the default used by C/C++ compilers), stdcall (the default used
by the Windows API). There is a fifth one: safecall, which
is only used in the context of interface methods. z http://www.swissdelp...ode.php?id=1233
1. stdcall użyte jest po to aby dll`ka napisana w delphi mogła współpracować z progiem napisanym w innym języku
2. library Project1; uses Windows; //<-- wystarczy tylko ten moduł procedure oko; stdcall; begin MessageBox(0, 'bleeeee!', 'Jestem Dll`ką!', MB_OK); end; exports // eksportuj procedurę oko; begin end.
LOL! Nigdzie trzeba begin ;)
Stdcall jest dla zachowania kompatybilności użycia dll-a:
z http://www.swissdelp...ode.php?id=1233
