Click here to Skip to main content
15,065,644 members
Articles / Web Development / HTML
Posted 24 Aug 2000


70 bookmarked

A Comprehensive CE Class Library to Replace ATL and MFC

Rate me:
Please Sign up or sign in to vote.
4.48/5 (14 votes)
4 Oct 2000CPOL
A collection of classes for CE that do not use ATL or MFC, plus an FTP client, database viewer, and sample application that solves beam deflection equations.


CeLib is a collection of classes that are a cross between ATL and MFC Window classes with some additional functionality thrown in to get some of the functionality you get from MFC (string, network and UI).

I first started programming for Windows CE version 2.0 for HPC and 2.01 for Palm-sized PC. The only tools available were a Visual Studio 5.0 plugin for C++ and a Visual Basic plugin for 5.0. MFC was available for the 2.0 HPC platform, but not for 2.01 Palm-sized PC, in addition it was a 300+ K additional installation and wasn't yet included on most ROMs. I needed to write applications that would run on both so MFC and ATL were out. So I looked at the source for MFC and ATL and some other window class library and stole the ideas and wrote my own.

An application with significant functionality can be created in 20k. The database browser that is included is about 50k and requires no DLLs that aren't already installed.

Version Information

These libraries will build for operating system versions 2.0, 2.01 and 2.11. They have been tested and work on HPC 2.0, Palm-sized PC 1.0, Palm-sized PC 1.2, HPC Pro 3.0, and PocketPC in compatibility mode.

Some Important Files

CePlatform.h Compile time defines to make life easier for version differences in library includes all libraries required for COM and normal Window functionality. Library names are different across different version of CE as well as between the emulator and non-emulator versions, this header hides those differences.

Also note that in Windows CE, many library functions from Windows 95/NT like WINSOCK and TAPI are included in the standard libraries, NOT in special libraries.

CeDebug.h Debug support such as TRACE, ASSERT
CeMisc.h Miscellaneous helper classes

Class Descriptions


CeString reference counted string class, CString plus numeric conversion

User Interface

CeBaseWnd A wrapper around HWND that provides for windows calls, but does not handle messages at all.
CeMsgWnd Message Handling for any class through multiple inheritance.
CeWnd Derived from both CeBaseWnd and CeMsgWnd to create the functionality of CWindowImpl (ATL) or CWnd (MFC), a basic Window wrapper
CeCmdBar Wrapper class for CE command bars
CeCombo Wrapper class for comboboxes
CeSplitFrame Frame Splitter class
CeTabCtrl Tab control wrapper
CDialogScroll Dialog with scroll bars
CeStatic Static control wrapper
CeChildMgr A class for managing child window positioning within a common parent
CePropertySheet Property sheet wrapper
CePropertyPage Property page wrapper
CeDialog Dialog wrapper class
CeFontDlg Font chooser dialog wrapper
CeStaticGroup Group box class

Modules, Control and Threads

CeCriticalSection CRITICALSECTION wrapper
CeWaitableHandle HANDLE wrapper with WaitForXXXXObject() support
CeManualEvent Manual Reset EVENT class
CeAutoEvent Auto Reset EVENT class
CeWaitObjects A class for constructing a list of object that can be waited for in concert (WaitforMultipleObjects, MsgWaitforMultipleObjects, etc.)
CeWorkerThread Thread wrapper class
CeAppModule Wrapper for an application's instance


CeSocket Socket wrapper classes
CeSockAddr Socket Address (SOCKADDR) wrapper
CeFtpClient FTP client class, a native implementation on the CeSocket class

Operating System

CeFindFile FindFile wrapper
CeRegKey Registry API wrapper
CeResource Simple Resource access
CeVersionInfo Version info extraction


CeArray Simple array class
CeSimpleMap Simple map (hashtable) class
CeRect RECT wrapper class
CePoint POINT wrapper class


CeDb CE native database support


CeInkCtrl Wraps the Ink control
CeRichInkCtrl Wraps the Rich Ink control
CeRas RAS API wrapper
CeToolTip Tooltip class


  • 5th October, 2000 - Updated with both functional and PocketPC support changes


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Kenny G
United States United States
No Biography provided

Comments and Discussions

GeneralMy vote of 1 Pin
hjgode27-May-13 4:18
Memberhjgode27-May-13 4:18 
QuestionA little Trouble on CToken Class (in CeFtp.cpp) ? Pin
tangi maury5-Jan-11 4:07
Membertangi maury5-Jan-11 4:07 
QuestionHow to use RecvFile? Pin
harizon926-May-08 4:53
Memberharizon926-May-08 4:53 
QuestionHow about support for Windows Mobile 5 Pin
panachepitts17-Nov-06 10:38
Memberpanachepitts17-Nov-06 10:38 
QuestionVS 2005 support Pin
Hojjat Bohlooli23-Jul-06 23:30
MemberHojjat Bohlooli23-Jul-06 23:30 
GeneralWaitForMultipleObject Pin
ammasramesha29-Jul-05 20:14
Memberammasramesha29-Jul-05 20:14 
GeneraleVC++ 4.0 support Pin
Stober23-Mar-05 5:20
MemberStober23-Mar-05 5:20 
GeneralWrite behind stack buffer in CCeSocket::GetHostByName() Pin
Christoph Weber21-Oct-04 22:05
MemberChristoph Weber21-Oct-04 22:05 
GeneralI don't want to use ADOCE in my PocketPC. Pin
Gopabandhu26-Apr-04 22:01
MemberGopabandhu26-Apr-04 22:01 
GeneralRe: I don't want to use ADOCE in my PocketPC. Pin
Heng cao5-Jun-04 7:55
MemberHeng cao5-Jun-04 7:55 
GeneralFTP app and sorting Pin
Amit Dey26-Dec-03 12:06
MemberAmit Dey26-Dec-03 12:06 
GeneralFtp class Pin
Simone197618-Dec-03 5:09
MemberSimone197618-Dec-03 5:09 
QuestionHow can use it in evc++ 3? Pin
Simone Sanfilippo13-Nov-03 23:50
MemberSimone Sanfilippo13-Nov-03 23:50 
AnswerRe: How can use it in evc++ 3? Pin
Andreas Muegge1-Dec-03 20:52
MemberAndreas Muegge1-Dec-03 20:52 
GeneralRe: How can use it in evc++ 3? Pin
Simone Sanfilippo1-Dec-03 22:59
MemberSimone Sanfilippo1-Dec-03 22:59 
QuestionHow to use CeVersioninfo class? Pin
Mark Findlay7-Sep-03 13:01
MemberMark Findlay7-Sep-03 13:01 
GeneralPocketPC tapi problem HELP !!! Pin
thitoune24-Mar-03 0:04
Memberthitoune24-Mar-03 0:04 
GeneralRe: PocketPC tapi problem HELP !!! Pin
Anonymous15-May-03 9:59
MemberAnonymous15-May-03 9:59 
Generalwireless transfer Pin
ronaldo8313-Mar-03 16:45
Memberronaldo8313-Mar-03 16:45 
GeneralATL for SmartPhone Pin
NickBln13-Feb-03 4:50
MemberNickBln13-Feb-03 4:50 
GeneralRe: ATL for SmartPhone Pin
Anonymous11-Mar-03 21:31
MemberAnonymous11-Mar-03 21:31 
GeneralWireless comm and TAPI Pin
Tushar_Zaware30-Sep-02 0:38
MemberTushar_Zaware30-Sep-02 0:38 
Questioncan't add items to Tree view in evc++ ?? Pin
31-May-02 6:58
suss31-May-02 6:58 
GeneralCeDbRecord::AddProp is broken Pin
10-Apr-02 22:32
suss10-Apr-02 22:32 
GeneralSome Problems Pin
20-Mar-02 5:51
suss20-Mar-02 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.