1. The document discusses the design of DM and different approaches to message handling, including an Old Msg Selector, DLL Factory, and Object Message Factory.
2. Issues with the Old Msg Selector approach include difficulty in debugging, duplicative code across messages, and inability to reuse logic.
3. The DLL Factory approach separates message implementation from the server base but makes debugging harder.
4. The Object Message Factory approach uses a MessageProcessorFactory and base MessageProcessor class to better separate and reuse message handling logic.
The document discusses font settings for different windows in Visual C++ 6. It specifies font faces like Monaco, Verdana, and Fixedsys for calls window, output window, source window, and others. It also provides hexadecimal color codes for styling elements like text, selection, keywords, and comments in the code editor. The font settings are stored in the Windows registry under HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Format.
This document discusses methods for finding and extracting substrings from a CString object in C++. It covers the Find() function, which searches for a substring within the CString and returns its index or -1 if not found. Using Find(), it demonstrates how to retrieve the substring to the left, right, or between two search terms. It also notes some considerations for Find(), such as it returning 0 when searching for an empty string.
1. The document discusses the design of DM and different approaches to message handling, including an Old Msg Selector, DLL Factory, and Object Message Factory.
2. Issues with the Old Msg Selector approach include difficulty in debugging, duplicative code across messages, and inability to reuse logic.
3. The DLL Factory approach separates message implementation from the server base but makes debugging harder.
4. The Object Message Factory approach uses a MessageProcessorFactory and base MessageProcessor class to better separate and reuse message handling logic.
The document discusses font settings for different windows in Visual C++ 6. It specifies font faces like Monaco, Verdana, and Fixedsys for calls window, output window, source window, and others. It also provides hexadecimal color codes for styling elements like text, selection, keywords, and comments in the code editor. The font settings are stored in the Windows registry under HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Format.
This document discusses methods for finding and extracting substrings from a CString object in C++. It covers the Find() function, which searches for a substring within the CString and returns its index or -1 if not found. Using Find(), it demonstrates how to retrieve the substring to the left, right, or between two search terms. It also notes some considerations for Find(), such as it returning 0 when searching for an empty string.
6. Visual Studio 2005的Solution Explorer
DMServer>ConstDefine
SUMessageDefine.h/.cpp Message Id字串定義
SUMessageDefine_ModuleName.cpp Message Id字串定義
SystemDefine.h/SystemDefine.cpp 其它系統會用上的字串定義
SystemTemplate.h 所有舊架構的Template函數
SuMsgErrorCode.h/.cpp error code的宣告與定義(與新架構共用)
7. Visual Studio 2005的Solution Explorer
DMServer>ConstDefine>FablinkKgs
fKDataTime 特別為Fablink加強的KDataTime版本(與新架構共用)
fSysUtils 特別為Fablink加強的SysUtils版本(與新架構共用)
8. Visual Studio 2005的Solution Explorer
DMServer>Impl>oldMessage
DoStructDefine 舊架構專用的Struct(Xml -> Struct的Struce定義)
各式各樣的…struct.h(不一定有.cpp)
ImplMarco.h 舊架構專用的MARCO
SuUtility.h/.cpp 舊架構專用拿來讀取.config檔的函數,初始化時期就出現成
全域物件
27. MainForm的初始化
BOOL MainForm::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
KGS::VerDataName file_info = KGS::GetFileVersionInfoA();
//顯示Dialog內的文字
//設定標題
//設定 給client的query資料
//初始化Timer(更新Busy Message用的)
//之後作業系統會自動執行void MainForm::OnTimer(UINT_PTR nIDEvent))
return TRUE; // return TRUE unless you set the focus to a control
}