Code: Select all
Frame.Show (Frame, TRUE)
Code: Select all
Frame.Show (TRUE)
In the Show function I do:
Code: Select all
DIM that as wxFrame ptr
'EBX seems to be the end of allocated memory for the structure where this function belongs to
ASM mov [that], EBX ' get value of ebx into the variable
that = that - len (wxFrame) - 4 ' - 4 bytes to get to the begin of the wxFrame structure
ShowWindow ( byval that->wxOBJ , SW_SHOW)
And as I said, it works great.
Now I want get rid of '*' of this piece:
Code: Select all
Frame = *wxFrame (0, -1,"Welcome to WX-C...", wxPoint( 0, 0), wxSize( 400, 170), wxDEFAULT_FRAME_STYLE)
Code: Select all
Frame = wxFrame (0, -1,"Welcome to WX-C...", wxPoint( 0, 0), wxSize( 400, 170), wxDEFAULT_FRAME_STYLE)
Code: Select all
DIM SHARED Frame AS wxFrame ptr
Code: Select all
Frame->Show (TRUE)
It seems that somehow the part with EBX doesn't work.
Why?
Where do I think wrong...