I'm relatively new to PureBASIC, having come from PowerBASIC, GFA-BASIC, C and (many years ago) Assembler.
I'm starting my learning by porting several old programs to PureBASIC but I only use the Win API style. The first thing that gets me is no WinMain() but someone already provided a workaround for that.
The current problem I'm having is with porting to x64 version where the code that returns the program Instance handle no longer works.
Code: Select all
;========================================================================================
; Get hInstance, using in-line assembler. (This'll be interesting!) Understand hInstance
; is stored in the PureBASIC variable _PB_Instance. We simply push/pop that into our
; global variable.
! push dword [_PB_Instance] ; Get from PureBASIC
! pop dword [v_ghInst] ; Store in global variable
Regards,
PatB