| |
|
|
- Page 1 - |
|
Christian Schneider | Hello people,
I frickle already a whole while on it rum a Dll ans walk To get (see Appendix).
I post sometimes a the Codes (of it there ne crowd, with the Gemeinsamkeit tappt im dunkeln funkionieren not )
there The data base prepares becomes (has its accuracy, if not yet present) and subsequently the Interpreter abschmiert, I'm going time of it from it's located on the Return Value.
The Doku to function finds itself here: [...]
Greeting Christian
P.s. having with dll´s yet not really plenty on the hat ;)
Nutze The 11Sub12 |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
Jac de Lad | self-confessed time Please someone benefit of cdecl? and the differences? and at all??? |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/10/08 ▲ |
|
|
|
|
Christian Schneider | there falls me spontan only one one:
@JAC: [...] |
|
|
| |
|
|
|
Jac de Lad | I see, has means for Ottonormalprofaner no Auswirkungen?! |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/10/08 ▲ |
|
|
|
|
Christian Schneider | No. out of the now More dll´s nativ funkionieren as yet.
@Roland: what if one several dll´s in a Program uses and a part of it by cdecl and others by stdcall works? |
|
|
| |
|
|
|
Jac de Lad | which because to that example? |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/10/08 ▲ |
|
|
|
|
| Jac
self-confessed time Please someone benefit of cdecl? and the differences? and at all???
amateurish framed could one say on Asmebene there no functions and no Funktionsparameter - there's but Sprungadressen and a Stack. If one now behauptet the code behind whom Sprungadressen corresponds to one Funktionscode then becomes the Stack as Parametermerker using. one places (push) means values on the Stack and jumping (call) then to a Sprungadresse. The code behind it takes The values of Stack (pop) circa these To process. The Vollständigkeithalber could one allude the one möglicher Return Value of/ one such function fundamentally in the eax-tab hinterlegt becomes before The function by ret whom Rücksprung prompted.
whether stdcall or cdecl places hierbei z.B. The Order solid with the The values of Stack taken go. with cdecl go The Params hold in umgekehrter Order To stdcall on the Stack gepackt.
depending on with which Compileroption z.B. a DLL compiled watts (or How the asm knitted is) must one therefore with cdecl or stdcall Call. |
|
|
| |
|
|
| |
|
- Page 2 - |
|
|
Jac de Lad | and wozu wurede the introduced? Why is not uniform?? |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/10/08 ▲ |
|
|
|
|
| Jac
and wozu wurede the introduced? Why is not uniform??
ideologic viewing or technical? |
|
|
| |
|
|
|
Jac de Lad | |
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 01/10/08 ▲ |
|
|
|
|
RGH | Christian tailor
No. out of the now More dll´s nativ funkionieren as yet.
@Roland: what if one several dll´s in a Program uses and a part of it by cdecl and others by stdcall works?
it must only to the Calling the jeweiligen function (means not already with DEF, ImportFunc or ImportDLL) the right Aufrufmodus tuned his. presently go but only CDECL and STDCALL supported.
and the CallBack-functions are always in the windows-standard STDCALL.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/10/08 ▲ |
|
|
|
|
Michael Wodrich | and ... - C-Compiler using CDECL - windows using STDCALL - Assembler can both.
this is only one Pi-time-thumb Überblick. there many Programmiersprachen the Aufrufmodell spare dial can go a great many DLLs hold windows-konform offered - but unfortunately not any (mostly The Interessantesten not).
One reason for the unfortunately not: from C since known functions with beliebigen Parameters (int amount, ...) there only in the CDECL-Variante.
Best wishes Michael Wodrich
Autsch, the Gibts too everything with Wikipedia - one must itself only to that reading durchringen. |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 01/12/08 ▲ |
|
|
|
|
RGH | Michael Wodrich
and ... - C-Compiler using CDECL - windows using STDCALL - Assembler can both.
One reason for different models is, that the Compilerhersteller one Aufrufmodell for your intenen functions ausdachten, long before it windows and/or together genutzte DLLs given. The Lesson was always same: The Parameter mussten on the Stack and subsequently had derselbe again aufgeräumt go. only in the Order the Parameter and the question, who because now for straighten up zuständig is (function or Aufrufer), there were different Solutions. and to Beschleunigung committed one too some Parameter by tab.
Moderne Compiler (too any C C++ Compiler) can but with Creation of together genutzen Bibliotheken indicate, which the Aufrufkonventionen used go. DELPHI using z.B. defaultmäßig REGISTER (d.h. the first Parameter go by Prozessorregister-tab transfer - the saving Time and Stackspeicher), but for DLLs can indicate, whether one CDECL, STDCALL or FARPASCAL benefit wants. 32-bit-windows using STDCALL, means ought to one under windows nutzbare DLLs vorzugsweise with STDCALL kompilieren. (16-bit-windows nutzte FARPASCAL as Aufrufkonvention. These convention comes but of my Wissens in DLLs not any more to.) CDECL finds one often with in C++ erstellten Bibliotheken, The it, How even SQLite, for Linux and Windows gives.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/12/08 ▲ |
|
|
|