|
// *********************************************************
// 初期処理
// *********************************************************
void InitWndProc( HWND hWnd )
{
// メインウインドウハンドル保存
hMainWnd = hWnd;
// 文字列オブジェクト作成
Buff = new LboxString();
Work = new LboxString();
Item = new LboxString();
Column = new LboxString();
Query = new LboxString();
Message = new LboxString();
// COM 初期化
CoInitialize( NULL );
// データベースブジェクト作成
// CurDb は、HM010.h で定義
CurDb = new LboxDatabase();
// 接続文字列作成
Tool.ProgramDirectory( Buff->szLboxString );
Buff->AddBackslash();
Buff->operator += ( "販売管理.mdb" );
CurDb->SetConnectString( 1, Buff );
}
| |