This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダファイルのインクルード | |
extern "C"{ // C言語として解釈する. | |
#include "string_utility_cstring.h" // 文字列ユーティリティ(C文字列処理) | |
} | |
// main関数の定義 | |
int main(){ | |
// 配列の初期化. | |
char bytes[] = {0xa, 0xb, 0, 0xd, 0xe}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ヘッダファイルのインクルード */ | |
#include <stdio.h> /* 標準入出力 */ | |
#include <string.h> /* 文字列処理 */ | |
/* 関数のプロトタイプ宣言 */ | |
int replace_byte(char *bytes, int size, char before, char after); /* 関数replace_byteの宣言. */ | |
/* main関数の定義 */ | |
int main(void){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
// 既定のヘッダ | |
#include <string.h> // C文字列処理 | |
// 独自のヘッダ | |
#include "FileDialog.h" // CFileDialog | |
// コンストラクタCFileDialog() | |
CFileDialog::CFileDialog(BOOL bOpenFileDalog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWindow* pParentWnd, DWORD dwSize) { | |
// メンバの初期化. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
// 既定のヘッダ | |
#include <string.h> // C文字列処理 | |
// 独自のヘッダ | |
#include "FileDialog.h" // CFileDialog | |
// コンストラクタCFileDialog() | |
CFileDialog::CFileDialog(BOOL bOpenFileDalog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWindow* pParentWnd, DWORD dwSize){ | |
// メンバの初期化. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
// 既定のヘッダ | |
#include <string.h> // C文字列処理 | |
// 独自のヘッダ | |
#include "FileDialog.h" // CFileDialog | |
// コンストラクタCFileDialog() | |
CFileDialog::CFileDialog(BOOL bOpenFileDalog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWindow* pParentWnd, DWORD dwSize) { | |
// メンバの初期化. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダファイルのインクルード | |
// 既定のヘッダ | |
#include <afxdlgs.h> // ダイアログなど. | |
// 独自のヘッダ | |
#include "CFrameWnd_.h" // CFrameWnd_クラス | |
#include "resource.h" // リソースID | |
// CFrameWnd_のメッセージマップ | |
BEGIN_MESSAGE_MAP(CFrameWnd_, CFrameWnd) | |
ON_UPDATE_COMMAND_UI(ID_ITEM_1_1, OnUpdateItem1_1) // メニュー項目などのUI更新マクロ.(Item1_1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "resource.h" | |
IDM_MAINMENU MENU | |
BEGIN | |
POPUP "Item1" | |
BEGIN | |
MENUITEM "Item1-1(&A)", ID_ITEM_1_1 | |
MENUITEM "Item1-2(&B)", ID_ITEM_1_2 | |
END | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダファイルのインクルード | |
// 既定のヘッダ | |
#include <afxdlgs.h> // ダイアログなど. | |
// 独自のヘッダ | |
#include "CFrameWnd_.h" // CFrameWnd_クラス | |
#include "resource.h" // リソースID | |
// CFrameWnd_のメッセージマップ | |
BEGIN_MESSAGE_MAP(CFrameWnd_, CFrameWnd) | |
ON_UPDATE_COMMAND_UI(ID_ITEM_1_1, OnUpdateItem1_1) // メニュー項目などのUI更新マクロ.(Item1_1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
// 既定のヘッダ | |
#include <stdio.h> // C標準入出力 | |
// 独自のヘッダ | |
#include "MainWindow.h" // CMainWindow | |
#include "resource.h" | |
// ウィンドウクラス登録関数RegisterClass. | |
BOOL CMainWindow::RegisterClass(HINSTANCE hInstance) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ヘッダのインクルード | |
// 既定のヘッダ | |
#include <stdio.h> // C標準入出力 | |
// 独自のヘッダ | |
#include "MainWindow.h" // CMainWindow | |
#include "resource.h" | |
// ウィンドウクラス登録関数RegisterClass. | |
BOOL CMainWindow::RegisterClass(HINSTANCE hInstance) { |
NewerOlder