NAME

ACE_CE_Bridge - This class bridges between ACE's default text output windows and the original ACE program.

SYNOPSIS

#include <ace/OS.h>

class ACE_CE_Bridge { public: ACE_CE_Bridge (void); ACE_CE_Bridge (HWND, int notification, int idc); ~ACE_CE_Bridge (void); void set_window (HWND, int notification, int idc); void set_self_default (void); int notification (void); int idc (void); HWND window (void); static ACE_CE_Bridge *get_default_winbridge (void); int write_msg (LPCTSTR str); int write_msg (CString *cs); private: HWND text_output_; int notification_; int idc_; ASYS_TCHAR *cmdline_; static ACE_CE_Bridge *default_text_bridge_; };

DESCRIPTION

As there is no such thing as text-based programs on Windows CE. We need to create a windows to read the command prompt and bridge the output windows with the original ACE program entry point. You'll need to link your program with "ace-windows.lib" for this to work. You can refer to $ACE_ROOT/WindowsCE/Main for how I use a dialog box to run the original ACE programs. This is certainly not the only way to use ACE in Windows programs.

PUBLIC MEMBERS

ACE_CE_Bridge (void);

ACE_CE_Bridge (HWND, int notification, int idc);

~ACE_CE_Bridge (void);

void set_window (HWND, int notification, int idc);

void set_self_default (void);

int notification (void);

int idc (void);

HWND window (void);

static ACE_CE_Bridge *get_default_winbridge (void);

int write_msg (LPCTSTR str);

int write_msg (CString *cs);

PRIVATE MEMBERS

HWND text_output_;

int notification_;

int idc_;

ASYS_TCHAR *cmdline_;

static ACE_CE_Bridge *default_text_bridge_;

AUTHOR

Doug Schmidt schmidt@cs.wustl.edu, Jesper S. M|ller stophph@diku.dk, and a cast of thousands...

The ACE_Sched_Priority type should be used for platform-

independent thread and process priorities, by convention. int should be used for OS-specific priorities.

typedef for the _stat data structure

Giving unique ACE scoped names for some important

RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.

LIBRARY

ace