PDA

View Full Version : what's the task of this oxygen code example ?



largo_winch
24-01-2012, 17:04
hello charles, can you help to say what this code is working or searching for an entry point (callback, win procedere) ? I found the code at c++ board and adept it to oxygen


' Empty GUI script created on 01-24-2012 15:53:42 by largo_winch (ThinAIR)

Uses "oxygen"

Dim src As String

src = "

basic

Push EBP
MOV EBP,ESP
Push EBX
Push EDI
Push ESI
Sub ESP,4
MOV DWord[ESP+4],0
MOV DWord[EBP-4],0

' effectively destroys the value in ESI.

"
O2_BASIC src

If Len(O2_ERROR) Then MsgBox 0, O2_ERROR : Stop
MsgBox 0, O2_LEN+$CR+O2_PREP src

O2_EXEC



there is still an error after compiling (gpf) I am thinking so the code example isn't fully correct but is showing results like you can see in screenshot picture.

bye, largo