Click here to Skip to main content
15,860,844 members
Articles / Web Development / HTML

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 276.6K   998   70   45
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.

Introduction

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

String

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

Network

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

Utility

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

Database

CeDb CE native database support

Experimental

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

History

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

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralSome Problems Pin
20-Mar-02 5:51
suss20-Mar-02 5:51 
GeneralSend To IrDA printer in Pocket PC Pin
Mesut3-Mar-02 4:14
Mesut3-Mar-02 4:14 
GeneralCeFtp and File not existing Pin
7-Oct-01 6:40
suss7-Oct-01 6:40 
Generalembedded c++ database app Pin
29-Jun-01 3:31
suss29-Jun-01 3:31 
GeneralCeFtpClient question (CeSocket, actually) Pin
Scott Leonard25-Jun-01 5:55
Scott Leonard25-Jun-01 5:55 
Generaldial up connection Pin
25-Jun-01 4:46
suss25-Jun-01 4:46 
GeneralViewing PWI data on the desktop computer Pin
Wlodek11-May-01 20:50
Wlodek11-May-01 20:50 
GeneralWaitForMultipleObjects Pin
1-Apr-01 7:18
suss1-Apr-01 7:18 
Hi.
Is there any workaround for WaitForMultipleObjects not supporting waiting for *all* synchronization objects on Windows CE 2.0?

(I relealize this might be a bit off-topic, but as this library is mostly wrappers for the API it's related Smile | :) )


- Anubis
GeneralRe: WaitForMultipleObjects Pin
Anonymous23-Apr-03 7:02
Anonymous23-Apr-03 7:02 
GeneralRe: WaitForMultipleObjects Pin
Anonymous15-May-03 9:57
Anonymous15-May-03 9:57 
GeneralRe: WaitForMultipleObjects Pin
Anonymous24-Jan-05 16:35
Anonymous24-Jan-05 16:35 
Generalproject.h file's FindFirstFlashCard Pin
22-Nov-00 19:43
suss22-Nov-00 19:43 
GeneralRe: project.h file's FindFirstFlashCard Pin
23-Nov-00 18:27
suss23-Nov-00 18:27 
GeneralWorth supporting 9x/nt Pin
Anonymous6-Oct-00 6:18
Anonymous6-Oct-00 6:18 
GeneralRe: Worth supporting 9x/nt Pin
Kenny G9-Oct-00 6:22
Kenny G9-Oct-00 6:22 
GeneralDoes this work on H/PC 3.0 using eMbedded VC++ Pin
Michael Chapman2-Oct-00 4:51
Michael Chapman2-Oct-00 4:51 
GeneralRe: Does this work on H/PC 3.0 using eMbedded VC++ Pin
Kenny G5-Oct-00 10:11
Kenny G5-Oct-00 10:11 
GeneralRe: Does this work on H/PC 3.0 using eMbedded VC++ Pin
Shane Dewing31-Oct-00 13:48
sussShane Dewing31-Oct-00 13:48 
GeneralPocketPC not yet supported ;( Pin
Kenny Goers25-Aug-00 6:24
sussKenny Goers25-Aug-00 6:24 
GeneralRe: PocketPC not yet supported ;( Pin
Kevin Cao28-Aug-00 11:36
Kevin Cao28-Aug-00 11:36 
GeneralRe: PocketPC IS NOW SUPPORTED Pin
Kenny G6-Oct-00 4:48
Kenny G6-Oct-00 4:48 

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.