Home |
Windowing Interface Terminology Win32 Emulation Library |
Win32 Emulation LibraryRTPEG-32 programs to run under On Time RTOS-32 must link library PEG.LIB. However, library PEGW32.LIB allows executing RTPEG-32 GUI programs under Windows as long as they do not need any other On Time RTOS-32 functions not available under Windows. No source code modifications are required, but RTPEG-32 programs for Windows must be linked with libraries PEGW32.LIB and PEG.LIB (in this order), no other On Time RTOS-32 libraries, but with standard Win32 API libraries such as KERNEL32, GDI32, USER32, etc. In addition, the linker must be instructed to produce a Win32 GUI instead of a Win32 Console program. Examples for the Dialog demo (Microsoft and Borland): cl -Zi -Zp4 Dialog.cpp pegw32.lib peg.lib user32.lib gdi32.lib /link /subsystem:windows bcc32 -W -v -a4 Dialog.cpp pegw32.lib peg.lib Library PEGW32.LIB contains Win32 emulation versions of all screen device drivers and dummy versions (do nothing, return 0) of the following RTTarget-32 native API functions: RTSetFlags() RTCMOSSetSystemTime() RTCMOSExtendHeap() RTInitMouse() RTSetMousePos() RTMouseDone() TTouchToPhys() TTouchCalibrate() RTGetGMode() RTEmuInit() These functions are not needed under Windows but allow a program to link successfully even if it references them.
|