Reference

ACE_CE_Bridge(3)

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

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);

Default ctor.

ACE_CE_Bridge (HWND, int notification, int idc);

Construct and set the default windows.

~ACE_CE_Bridge (void);

Default dtor.

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

Specify which window to use.

void set_self_default (void);

Set the default window.

int notification (void);

int idc (void);

HWND window (void);

Access functions.

static ACE_CE_Bridge *get_default_winbridge (void);

Get the reference of default ACE_CE_BRIDGE.

int write_msg (LPCTSTR str);

Write a string to windows.

int write_msg (CString *cs);

Write a CString to windows. Notice that the CString object will be freed by windows.

PRIVATE MEMBERS

HWND text_output_;

A pointer to the window that knows how to handle ACE related messages.

int notification_;

Notification of the window that receives WM_COMMAND when outputing strings.

int idc_;

IDC code of the window that receives WM_COMMAND when outputing strings.

ASYS_TCHAR *cmdline_;

static ACE_CE_Bridge *default_text_bridge_;

A pointer to the default ACE_CE_BRIDGE obj.

AUTHOR

Doug Schmidt [email protected], Jesper S. M|ller [email protected], 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