VC
最小化・最大化・閉じるボタンを無効に。 http://techtips.belution.com/ja/vc/0038/
フォルダ選択ダイアログ http://techtips.belution.com/ja/vc/0069/
typedef struct tagOFN { // ofn DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; LPCTSTR lpstrFilter; LPTSTR lpstrCustomFilter; DWORD nMaxCustFilter; DWORD nFilterIndex; LPTSTR lpstrFile; DWORD nMaxFile; LPTSTR lpstrFileTitle; DWORD …
デバッグとリリース http://donguri.sakura.ne.jp/~shock8/wisper/debug_release.html
CWinThreadクラスについてごにょごにょ。pRumtimeClass = RUNTIME_CLASS(CRecvThread); pRecvThread = (CRecvThread*)pRumtimeClass->CreateObject();http://hp.vector.co.jp/authors/VA014436/prg_memo/windows/vctips/039.html
_T("テキスト") みたいな
特に非同期シリアル通信に出てくるモノのメモ CreateFile ReadFile WriteFile WaitCommEvent CreateEvent WaitForSingleObject CloseHandle PurgeComm ClearCommError CanselIo COMSTAT構造体 COMMTIMEOUTS構造体 OVERLAPPED構造体 COMMPROP構造体
CreateDirectory 新しいディレクトリの1階層上のディレクトリまで存在していないとダメ。 1つずつ作る関数を作って置くのもいいが MakeSureDirectoryPathExists というのがある。(imagehlp.lib, imagehlp.hをインクルード)
スレッドの同期に使える(良く使う)モノ一覧 クリティカルセクション InitializeCriticalSection DeleteCriticalSection CCriticalSection(MFC) ミューテックス CreateMutex WaitForSingleObject CloseHandle CMutex(MFC)-イベントオブジェクト CreateEvent…
初期表示ディレクトリを設定する方法 pFileDlg = new CFileDialog(TRUE); /* ファイルダイアログ作成 */ pFileDlg->m_ofn.Flags |= OFN_NOCHANGEDIR; pFileDlg->m_ofn.lpstrInitialDir = "ディレクトリ"; pFileDlg->DoModal(); delete pFileDlg;