The Cockpit Platform Libraries

Top  Previous  Next

The Cockpit platform libraries bring the basic Windows functionality to your Xbase++ applications. This job is accomplished by the provision of wrappers (so-called adapter functions) for the functions provided by the most "prominent" O/S dlls like kernel32.dll, gdi32.dll, user32.dll, etc. The platform Dlls also provide another level of abstraction to the dll functions: O/S objects like windows, device contexts, modules, etc. are defined and implemented in them. These objects are very often put together from methods which reside as functions in different O/S Dlls. (See

 

There are three Cockpit Platform Libraries:

 

CCKPTBAS.DLL: It contains the Cockpit Adapter functions and necessary structures for these system dlls: advapi32.dll, comctl32.dll, comdlg32.dll, gdi32.dll, htu.dll, imagehlp.dll, kernel32.dll, msimg32.dll, psapi.dll, user32.dll, winspool.drv.

 

CCKPTADV.DLL: It contains the adapter functions for winmm.dll, the DDE structures and the SharedMemory class.

 

CCKPTSHD.DLL: Shared functions, structures and interfaces to be used in the Cockpit Platform Libraries and in Cockpit Extension Libraries.

 

The source for the Platform libraries is supplied so you can add your own extensions like new adapter functions or structures. And, in case you hit a bug, you can fix it right away. Please let me know if you hit one so I can apply the fix as well for the next release.

 

If you want to auto-link the Platform Dlls to your application, #include the file "CockpitPlatformLibs.ch" in one of your prg files. This will also auto-link the Core Library.