English
Forum

Delphi Translation necessary

 

Clemens
Meier
in the Win32.api have I something found, I not understood have. means have I to one Piece Program sought, in the The function using becomes. and found have I the:
CompileMarkSeparation
 
XProfan 9.1; XP SP2; FF; Editpad
05/24/06  
 




Michael
Wodrich
(char *) and @B
here deals it itself in Profan circa a area (Zeiger on The data) and the following is then simply The Größenangabe.

Richte a area one, set with byte area#,0 = ... your Bool-worth into and give Memory-Variable on (it'll automatically The address the Bereiches taken and as Size hold The 1.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
05/24/06  
 




Clemens
Meier
Translated means:
CompileMarkSeparation
declare buffer#
dim buffer#,1
string buffer#,0 = "1"
setsockopt(csockTCPget&,$ffff,4,buffer#,sizeof(buffer#))pre>

or have I it wrong understood?
 
XProfan 9.1; XP SP2; FF; Editpad
05/24/06  
 




Michael
Wodrich
byte, not String. so How You it make alights there The Dezimalzahl 49. this is for TRUE alike (mismatched zero) but for 0 is then there 48 and this is too TRUE !!
byte Buffer#,0 = 1 true
byte Buffer#,0 = 0 false

then is it correctly. - as a precaution would I for Size but directly a 1 bring into action - saving too Time and code.
The Optionswert must faith I only 1 byte big his.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
05/24/06  
 




Clemens
Meier
clear, there I had well a Aussetzer. byte, not String, differently power it then indeed none sense. Merci.
 
XProfan 9.1; XP SP2; FF; Editpad
05/24/06  
 




Sebastian
König
caution: The Delphi-type Bool is really only one Integer and is therefore 4 byte big.

and with Addr() could one even another row save...
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
05/24/06  
 




Michael
Wodrich
then ought to well rather with a LongInt worked go.
CompileMarkSeparation
!
Declare Bool&
Bool& = 1
SetSockOpt(cSockTCPget&,$FFFF,4,Addr(Bool&),SizeOf(Bool&))pre>
 
Programmieren, das spannendste Detektivspiel der Welt.
05/24/06  
 




Clemens
Meier
SizeOf(Bool&) is naturally Q... anyway under XProfan 9.1. How it under 10 looks, white I do not. but I suspect, that this the Error was, the me so some on Kopfzerbrechen cost[ed] has. and there it XProfan is and the worth in a Longint stick, must I instead 4 indicate (so hope I and so Try I it from)
 
XProfan 9.1; XP SP2; FF; Editpad
05/29/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.596 Views

Untitledvor 0 min.
RudiB.11/14/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