Oxygen Basic
Programming => Problems & Solutions => Topic started by: Peter on November 02, 2011, 09:25:08 AM
-
Deleted.
-
Hi Peter,
I think an alignment to 4 bytes is needed after EventType. (or make it a Dword)
Type INPUT_RECORD
WORD EventType
align 4
union
{
KEY_EVENT_RECORD KeyEvent
MOUSE_EVENT_RECORD MouseEvent
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent
MENU_EVENT_RECORD MenuEvent
FOCUS_EVENT_RECORD FocusEvent
}
End Type
#recordof input_record
Charles
-
No-padding is the default for Oxygen Types. Different compilers have different rules unfortunately. I could make it Visual-C compliant for MS Windows.
-
Hi Peter,
Unfortunately I'm not well acquainted with the console API.
Have you defined all the type structures? Error trapping needs strengthening in this area undefined elements within types are interpreted as 32 bit sys type.
Charles