English
Forum

Dll question Return Value

 

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

421 kB
Hochgeladen:01/10/08
Downloadcounter148
Download
 
XProfan 11| Vista(64) SP2
01/10/08  
 




Andreas
Miethe


the lying not on the Return Value.
The Dll uses CDECL-Aufrufkonventionen instead of StdCall.

See here :  [...] 
 
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
01/10/08  
 




Christian
Schneider
thanks, there would I in life not on it come

The code runs by me unfortunately not.
 
XProfan 11| Vista(64) SP2
01/10/08  
 




Andreas
Miethe


have You you The Examples of Uwe Pascal Niemeier time runtergeladen ?

functions by me wonderful.

example :
CompileMarkSeparation
 $H Windows.ph

proc CallCdecl----------------------------------CallCdecl-------------------------------

    ****************** © by TCS (Uwe Pascal Niemeier) 042006
    declare asm#,RetVal&
    dim asm#,36
    long asm#, 0=-1947432107,166399045,-855390069,-394055169
    long asm#,16=217613060,1166799479,-1949237496,1019370981,0
    RetVal& = call( asm#,&(1),%pcount*4+8,&(2),&(3),&(4),&(5),&(6),
    &(7),&(8),&(9),&(10),&(11),&(12),&(13),&(14) )
    Dispose asm#
    Return retval&
    endproc---------------------------------------------------------------------------------
    declare DB&,File$
    declare SqlLite&,open&,close&-----------Cdecl-Funktionen
    SqlLite&=usedll(sqlite3.dll)
    open& =~GetProcAddress(SqlLite&,sqlite3_open)
    close& =~GetProcAddress(SqlLite&,sqlite3_close)
    File$ =Test1.db
    CallCdecl(open&,Addr(File$),Addr(DB&))
    Print Datenbank - Handle : +str$(DB&)
    Waitinput
    CallCdecl(close&,DB&)
    
Gruss
Andreas
________ ________ ________ ________ _
Profan 3.3 - XProfanX2
Win 95,98,ME,2000,XP,Vista - Win 7 32 / 64 Bit
ASUS X93S - Intel Core I7-NVIDIA GForce 540M 8GB Arbeitsspeicher
Homepage :  [...] 
01/10/08  
 




Christian
Schneider
whom Have I overlooking. thanks, functions.
 
XProfan 11| Vista(64) SP2
01/10/08  
 




RGH
The story has me on it reminds, I already longer vorhatte, in XProfan too CDECL To support. ex the next Subscriptionsversion functions following code:
CompileMarkSeparation
New is solely Set(CallConv, CDECL).

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  
 




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:  [...] 
 
XProfan 11| Vista(64) SP2
01/10/08  
 




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?
 
XProfan 11| Vista(64) SP2
01/10/08  
 




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.
 
01/10/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.486 Views

Untitledvor 0 min.
Georg Teles10/03/14
Michael Borowiak12/19/12

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie