| |
|
|
funkheld | Hello, good day.
Why becomes The Globale Variable "sinu!" in XPSE or with getCircP not recognized ? "[09:25:08] Objektcode: XPSE-SETPIXEL-XY.asm(213) : Error A2102: symbol hardship defined : SINU" CompileMarkSeparation {$cleq}
declare ende&,bild&
Declare sinu!
Window 20,20-600,600
Cls $ffffff
sinu!=sin(0.0174532925199433)
erzeugebild()
ende&=1
WHILE ende&
waitkey
ENDWHILE
nProc getCircP(long r,w)
global sinu!
return long(sinu!*float(w)/1000.0*float(r))
endproc
nProc erzeugebild()
Declare x&,y&,r&
Whileloop 0,200,2
r&=&loop
whileloop 0,360000,1000
x&=getcircp(r&,&loop)
y&=getcircp(r&,&loop+90000)
SetPixel(%hdc,280+x&,280+y&,rgb(0,255,0))
EndWhile
EndWhile
endproc
|
|
|
| |
|
|
|
Jörg Sellmeyer | I kenn me with ASM not from but for me sees the so from, that You The Variable sinu! now twice global definiert have. once in the Profancode at the beginning and then again by "global" in the nProc. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 12/16/13 ▲ |
|
|
|
|
funkheld | Jup , is here so described in the Hlife of XPSE : [...]
what about me use tappt im dunkeln too only to that reading in the nProc. but it recognize only Long , How I red have.......................
Why the?.. or goes not differently To make in XPSE ?
Thank you. greeting |
|
|
| |
|
|
|
| so is not described, because there [...] standing:
Deklariert in nativen functions Long-variables with Postfix & and initialized The variables with the Values gleichnamiger globaler by Declare deklarierter variables. Native globale Floats there not but You could you The values global remember with the Hilfsfunktion SetFloat [...] a "globalen" memory or. its address. |
|
|
| |
|
|