{"id":3570,"date":"2012-07-11T08:59:14","date_gmt":"2012-07-10T23:59:14","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/archives\/3570"},"modified":"2012-07-11T04:03:15","modified_gmt":"2012-07-10T19:03:15","slug":"visual-c-%e3%81%ae-resource-h-%e3%82%92%e8%80%83%e3%81%88%e7%9b%b4%e3%81%99","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/3570","title":{"rendered":"Visual C++ \u306e resource.h \u3092\u8003\u3048\u76f4\u3059"},"content":{"rendered":"<p>\u4f55\u6545\u4eca\u9803\u306b\u306a\u3063\u3066\u3001*.rc \u3084\u3089 resource.h \u3084\u3089\u306e\u8a71\u306b\u306a\u308b\u304b\u3068\u3044\u3046\u3068\uff08\u8ab0\u3082\u5206\u304b\u3089\u306a\u3044\/\u56f0\u3089\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u3055\u3066\u304a\u304d\uff09\u3001<\/p>\n<p>.NET \u306b\u304a\u3051\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3 \u30ac\u30a4\u30c0\u30f3\u30b9<br \/>\n<a href=\"http:\/\/www.microsoft.com\/ja-jp\/dev\/2010\/solutions\/architecture\/default.aspx\">http:\/\/www.microsoft.com\/ja-jp\/dev\/2010\/solutions\/architecture\/default.aspx<\/a><\/p>\n<p>\u3092\u3056\u3063\u3068\u8aad\u307f\u8fd4\u3057\u3066\u3044\u3066\u3001\u304b\u3064\u3066\u306eVB2.0\u3084\u3089VC++5\uff08\u3042\u305f\u308a\uff1f\uff09\u304b\u3089\u57fa\u672c\u7684\u306a\u300c\u30ec\u30a4\u30e4\u30fc\u300d\u3068\u3044\u3046\u6982\u5ff5\u306f\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u3001\u3068\u3044\u3046\u3068\u3053\u308d\u3092\u8003\u3048\u3066\u3044\u305f\u308f\u3051\u3067\u3059\u3002\u5f53\u6642\uff08\u4e3b\u306b15\u5e74\u524d\uff09\u306f\u3001\u30e1\u30e2\u30ea\u30fc\u306e\u5236\u7d04\u304c\u5927\u304d\u304b\u3063\u305f\u308a\u3001\u56de\u7dda\u304c\u7d30\u3059\u304e\u305f\u308a\uff08\u305d\u308c\u3067\u3082\u30d1\u30bd\u30b3\u30f3\u901a\u4fe1\u306e9600bps\u306b\u6bd4\u3079\u308c\u3070\u3001\u793e\u5185LAN\u306e10Base\u306f\u5929\u56fd\u3060\u3063\u305f\u8a33\u3067\uff09\u3059\u308b\u300c\u5236\u7d04\u300d\u304c\u3042\u308a\u3001\u3053\u306e\u305f\u3081\u306b\u3082\u30e1\u30e2\u30ea\u52b9\u7387\u3084CPU\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u52b9\u7387\u7684\u304b\u3064\u76f4\u63a5\u7684\u306b\u6271\u3046 C\/C++ \u304c\u597d\u307e\u308c\u305f\u308f\u3051\u3067\u3059\u3002VM \u3068\u3044\u3046\u610f\u5473\u3067\u306f\u3001Pcode \u3092\u4f7f\u3063\u305f VB2.0 \u304c\u65e2\u306b\u51fa\u3066\u3044\u308b\u306e\u3067\u300c\u5b9f\u904b\u7528\u300d\u306b\u8010\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u305f\uff08\u5f53\u6642\u3001Excel VBA\u3067\u696d\u52d9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d44\u3093\u3067\u3044\u305f\u3057\uff09\u3001\u3061\u3087\u3046\u3069\u305d\u3093\u306a\u72ed\u9593\u306e\u6642\u671f\u3067\u3059\u3088\u306d\u3002\u3044\u3084\u3044\u3084\u3001\u65e2\u306b smalltalk \u3084 lisp \u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3068\u3044\u3046\u6982\u5ff5\u3082\u666e\u901a\u306b\u3042\u3063\u305f\u308f\u3051\u3067\u3002emacs \u3092\u4f7f\u3063\u3066\u3044\u305f\u3057\u3001\u3082\u3063\u3068\u9032\u3093\u3067\u3044\u305f\u30cf\u30ba\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u6982\u5ff5\u306f\u307e\u3060\u300c\u30d1\u30bf\u30fc\u30f3\u300d\u3068\u3044\u3046\u540d\u524d\u306b\u767a\u5c55\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u65e2\u306b\u3042\u308a\u307e\u3057\u305f\u3002\u304c\u3001\u597d\u610f\u7684\u306b\u8a00\u3048\u3070\u300c\u307e\u3060\u3001\u3053\u306a\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u300d\u3042\u308b\u3044\u306f\u300c\u73fe\u5b9f\u89e3\u3092\u9078\u3093\u3060\u300d\u306e\u304c\u3001Microsoft\u304c\u751f\u307f\u51fa\u3057\u305fMFC\u3068\u3044\u3046\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u7fa4\u3068 *.rc \u3092\u4e2d\u5fc3\u3068\u3059\u308b\u30c7\u30b6\u30a4\u30ca\u3067\u3059\u3002wysiwyg \u3068\u3044\u3046\u5974\u3067\u3059\u306d\u3002<\/p>\n<p>\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u4e0a\u3067\u30de\u30a6\u30b9\u3092\u4f7f\u3044\u306a\u304c\u3089\u307d\u3061\u307d\u3061\u3068\u90e8\u54c1\uff08\u30dc\u30bf\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff09\u306a\u3069\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002\u4eca\u3068\u306a\u3063\u3066\u306f\u5f53\u7136\u306e\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\uff08\u3044\u3084\u3001Qt\u3068\u304btcl\/tk\u3068\u304b\u4f7f\u3046\u3068\u5ea7\u6a19\u6307\u5b9a\u3057\u3066\u3044\u308b\uff1f\uff09\u3001VB2.0 \u304c\u51fa\u305f\u9803\u306f\u300c\u3053\u308c\u306f\u4fbf\u5229\u300d\u3068\u7686\u3055\u307e\u76f8\u5f53\u4f7f\u3063\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3055\u3066\u3001VB \u3067\u597d\u8a55\u3092\u535a\u3057\u305f\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u3001VC \u306b\u6301\u3063\u3066\u304d\u305f\u306e\u304c Visual Studio \u306e\u30ea\u30bd\u30fc\u30b9\u30a8\u30c7\u30a3\u30bf\u306a\u306e\u3067\u3059\u304c\u3001\u4eca\u304b\u3089\u8003\u3048\u308c\u3070\u300c\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u540d\u524d\u3067\u5236\u5fa1\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u30c3!!!\u300d\u3063\u3066\u5177\u5408\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>VB \u306e\u5834\u5408\u3001\u753b\u9762\u30ea\u30bd\u30fc\u30b9\u306f\u3001<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nVERSION 5.00\r\nObject = &quot;{648A5603-2C6E-101B-82B6-000000000014}#1.1#0&quot;; &quot;MSCOMM32.OCX&quot;\r\nBegin VB.Form Form2\r\n   Caption         =   &quot;Terminal&quot;\r\n   ClientHeight    =   3450\r\n   ClientLeft      =   60\r\n   ClientTop       =   345\r\n   ClientWidth     =   3600\r\n   LinkTopic       =   &quot;Form2&quot;\r\n   ScaleHeight     =   3450\r\n   ScaleWidth      =   3600\r\n   StartUpPosition =   3  'Windows \u306e\u65e2\u5b9a\u5024\r\n   Begin VB.PictureBox Pic_Info\r\n      Height          =   255\r\n      Left            =   3120\r\n      ScaleHeight     =   195\r\n      ScaleWidth      =   315\r\n      TabIndex        =   9\r\n      Top             =   3120\r\n      Width           =   375\r\n   End\r\n   Begin VB.CommandButton IDB_DISCONNECT\r\n      Caption         =   &quot;Disconnect&quot;\r\n      Height          =   255\r\n      Left            =   120\r\n      TabIndex        =   8\r\n      Top             =   2760\r\n      Width           =   975\r\n   End\r\n...\r\nEnd\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u3001\u300cPic_Info\u300d\u3084\u300cIDB_DISCONNECT\u300d\u3068\u3044\u3046\u540d\u524d\uff08\u6587\u5b57\u5217\uff09\u3067\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u540d\u524d\u306e namespace \u306f\u3001\u3053\u306e\u30d5\u30a9\u30fc\u30e0\u306e\u4e2d\u3067\u6709\u52b9\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u4ed6\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u3063\u305f\u3068\u304d\u306b\u3082\u3001\u540c\u3058\u300cPic_Info\u300d\u3084\u300cIDB_DISCONNECT\u300d\u3068\u3044\u3046\u540d\u524d\u3092\u4ed8\u3051\u3089\u308c\u308b\u306e\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u533a\u5225\u306f\u3001Form1.Pic_Info \u3068 Form2.Pic_Info \u3068\u306f\u5225\u306e\u3082\u306e\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002\u5f53\u305f\u308a\u524d\u3068\u3044\u3048\u3070\u5f53\u305f\u308a\u524d\u306e\u3088\u3046\u306a\u6c17\u304c\u3059\u308b\u306e\u3067\u3059\u304c&#8230;<\/p>\n<p>VC++ \u306e\u5834\u5408\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f *.rc \u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u30ea\u30bd\u30fc\u30b9\u3092\u9664\u3044\u3066\u307f\u308b\u3068\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nIDD_HC_WAVE_VRETICAL_PAGE DIALOGEX 0, 0, 279, 193\r\nSTYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION\r\nCAPTION &quot;Vertical&quot;\r\nFONT 8, &quot;MS Sans Serif&quot;, 0, 0, 0x0\r\nBEGIN\r\n    LTEXT           &quot;Group name:&quot;,IDC_STATIC,5,10,77,8\r\n    LTEXT           &quot;Hatch cover no:&quot;,IDC_STATIC,5,26,77,8\r\n    LTEXT           &quot;Length of hatch opening (m):&quot;,IDC_STATIC,5,42,101,8\r\n    LTEXT           &quot;Breadth of hatch opening (m):&quot;,IDC_STATIC,5,57,101,8\r\n    LTEXT           &quot;Hatch center location FP (m):&quot;,IDC_STATIC,5,74,101,8\r\n    LTEXT           &quot;Pressure P (kN\/m2):&quot;,IDC_STATIC,5,91,101,8\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_GROUP_NAME,114,10,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_BREADTH,114,57,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_HATCH_COVER_NO,114,26,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_LENGTH,114,42,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_CENTER,114,73,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        IDC_E_HC_WAVE_LOADS_PRESSURE,114,89,92,12,ES_AUTOHSCROLL\r\nEND\r\n<\/pre>\n<p>\u300cIDC_E_HC_WAVE_LOADS_GROUP_NAME\u300d\u3084\u300cIDC_E_HC_WAVE_LOADS_BREADTH\u300d\u306f\u4e00\u898b\u540d\u524d\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u5225\u9014 resource.h \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u6570\u5024\u306a\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n#define IDC_E_HC_WAVE_LOADS_GROUP_NAME 1000\r\n#define IDC_E_HC_WAVE_LOADS_BREADTH    1001\r\n<\/pre>\n<p>\u3067\u3001\u3053\u306e\u6570\u5024\u3092\u4f7f\u3063\u3066 VC++ \u306e\u5834\u5408\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e CEdit \u3092\u6271\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nCEdit *editName = (CEdit*)this-&gt;GetDlgItem(IDC_E_HC_WAVE_LOADS_GROUP_NAME);\r\n\r\n\u3042\u308b\u3044\u306f\r\n\r\nCEdit m_editName;\r\n...\r\nDDX_Control( ex, IDC_E_HC_WAVE_LOADS_GROUP_NAME, editName );\r\n<\/pre>\n<p>\u307e\u3042\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u826f\u3044\u306e\u3067\u3059\u3088\u3002\u6587\u5b57\u5217\u306e\u3088\u3046\u306b\u30e1\u30e2\u30ea\u3092\u55b0\u3046\uff08\u3042\u308b\u3044\u306f\u5b9a\u7fa9\u3057\u306b\u304f\u3044\u5024\uff09\u3092\u4f7f\u3046\u3088\u308a\u306f\u3001\u6570\u5024\u3067\u53d7\u3051\u6e21\u3057\u304c\u3067\u304d\u308b\u3068\u9ad8\u901f\u5316\u3067\u304d\u308b\u3057\u3002\u5b9f\u969b\u3001\u79c1\u3082\u5f53\u6642\u306f\u3001GetDlgItem \u3092\u4f7f\u3063\u3066 CButton \u3084 CEdit \u306b\u30ad\u30e3\u30b9\u30c8\u3092\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u304c\u3001\u554f\u984c\u306f\u3053\u306e\u6570\u5024\u306e\u5b9a\u7fa9\u304c\u3001resource.h \u306b\u96c6\u307e\u3063\u3066\u3057\u307e\u3046\uff08\u3042\u308b\u3044\u306f\u4f55\u51e6\u304b\u3067 define \u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\uff09\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>VB \u306e\u5834\u5408\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u6bce\u306b\u300cPic_Info\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u7279\u5b9a\u3059\u308b\u306b\u3057\u3066\u3082\u300cPic_Info\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3068\u6bd4\u8f03\u3059\u308b\u306e\u3067\u3001\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u53c2\u7167\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u52ff\u8ad6\u300cPic_Info\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u300cPicutre_Info\u300d\u306e\u3088\u3046\u306b\u30bf\u30a4\u30d7\u30df\u30b9\u3057\u3066\u3057\u307e\u3046\u554f\u984c\u3082\u3042\u308a\u307e\u3059\u304c\u3001VB \u306e\u5834\u5408\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540d\u524d\uff1d\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u81ea\u8eab\u3092\u793a\u3059\u5b9f\u88c5\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u30bf\u30a4\u30d4\u30f3\u30b0\u30df\u30b9\u304c\u767a\u751f\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001VC++ \u306e\u5834\u5408\u3001\u4e00\u898b VB \u306e\u30c7\u30b6\u30a4\u30ca\u3092\u7d99\u627f\u3057\u305f\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001resource.h \u306b\u4e00\u5ea6\u5b9a\u7fa9\u3057\u305f\u5024\u3092 *.rc \u306e\u5024\u3068\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u305b\u3066\u3044\u308b\u305f\u3081\u306b\u3001\u4e8c\u5ea6\u624b\u9593\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u3001namespace \u306e\u6982\u5ff5\u306f\u3001resource.h \u5168\u4f53\u306b\u5e83\u304c\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u3046\u5168\u30d5\u30a9\u30fc\u30e0\u3067\u5225\u3005\u306e\u6570\u5024\u3092\u5272\u308a\u632f\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u66f4\u306b\u4e91\u3048\u3070\u3001C++ \u3067\u306f #define \u3067\u6570\u5024\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u3001resource.h \u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306f\u3001\u753b\u9762\u4ee5\u5916\u306e\u30ea\u30bd\u30fc\u30b9 ID \u3082\u542b\u3093\u3067\u3044\u308b\u306e\u3067\u3059\u3002\u5b9f\u306b\u6df7\u4e71\u306e\u5143\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u5f0a\u5bb3\u3082\u3042\u3063\u3066\u3001resource.h \u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5b9a\u7fa9\u3092\u6570\u3005\u306e\u30d5\u30a9\u30fc\u30e0\u3067\u53c2\u7167\u3059\u308b\u305f\u3081\u306b\u3001\u4f55\u51e6\u304b\u306e\u753b\u9762\u3092\u5909\u66f4\u3059\u308b\u305f\u3073\u306b\u3001resource.h \u304c\u66f8\u304d\u63db\u3048\u3089\u308c\u3066\u3001\u4ed6\u306e\u300c\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u753b\u9762\u300d\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001C++ \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u69cb\u9020\u4e0a\u306e\u6b20\u9665\u3067\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f\u30d5\u30a9\u30fc\u30e0\u3054\u3068\u306b resource.h \u3092\u7528\u610f\u3059\u308b\uff08\u3042\u308b\u3044\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30ebID\u3092\u76f4\u63a5\u5b9a\u7fa9\u3059\u308b\uff09\u3068\u3044\u3046\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u305f\u8981\u7d20\u306a\u306e\u3067\u3001\u3048\u3048\u300c\u4ed5\u69d8\u30df\u30b9\u300d\u3067\u3059\u306d\u3002<br \/>\n\u5f53\u6642\u3068\u3057\u3066\u306f\u3001\u5341\u6570\u753b\u9762\u304c\u666e\u901a\u3060\u3063\u305f\u306e\u3067\uff08\u305d\u3046\u3057\u306a\u3044\u3068\u30e1\u30e2\u30ea\u304c\u8db3\u308a\u306a\u304f\u306a\u3063\u305f\uff09\u554f\u984c\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u3068\u306a\u3063\u3066\u767e\u753b\u9762\u3042\u3063\u3066\u3082\u4e0d\u601d\u8b70\u3067\u306f\u306a\u3044\u306e\u3067\uff08\u305d\u3046\u3044\u3046\u4f5c\u308a\u65b9\u3092\u3059\u308b\u306e\u3082\u554f\u984c\u3067\u3059\u304c\uff09\u3001\u7d50\u69cb\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u3072\u3087\u3063\u3068\u3059\u308b\u3068\u3001\u5f53\u6642\u306e VC++ \u3088\u308a\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u9045\u304f\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3044\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\uff08\u5f53\u6642\u3001MSC++ \u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u9045\u3044\u306e\u3067\u6709\u540d\u3060\u3063\u305f\u306e\u3067\u3001\u6b63\u78ba\u306a\u3068\u3053\u308d\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3002\u305d\u3046\u305d\u3046\u3001toubo c++ \u304c\u65e9\u304b\u3063\u305f\u3002gcc \u306f\u9045\u304b\u3063\u305f\uff09\u3002<\/p>\n<p>\u3067\u306f\u3001XAML \u306e\u5834\u5408\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8b58\u5225\u306f\u6587\u5b57\u5217\uff08Name\u5c5e\u6027\uff09\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30c7\u30b6\u30a4\u30ca\uff06\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u3001VB \u3068\u540c\u3058\u3088\u3046\u306b\u3001\u6587\u5b57\u5217\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u540d\u3092\u81ea\u52d5\u7684\u306b\u76f8\u4e92\u5909\u63db\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001Xcode + objective-c \u306e\u5834\u5408\u306f\u3001Outlet \u3068\u3044\u3046\u5f62\u3067\u624b\u52d5\u3067\u30c7\u30b6\u30a4\u30ca\u3068\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\u5f53\u6642\u306e VC++ \u3092\u64c1\u8b77\u3059\u308b\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f window handle \u306b\u7d50\u3073\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u4f5c\u308b\u3068\u304d\u306b int \u578b\u306e\u5024\u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u52b9\u7387\u304c\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u3088\u3002metro style \u3092\u306f\u3058\u3081\u3068\u3059\u308b silverlight \u3084 WPF \u306a\u3069\u306e XAML \u306e\u5834\u5408\u306b\u306f window handle \u3092\u6301\u305f\u305a\u306b\u3001\u76f4\u63a5 XAML \u306e\u69cb\u9020\u304b\u3089\u691c\u77e5\u3092\u3057\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u3053\u306e\u69cb\u9020\u306e\u9055\u3044\uff08window class struct \u306e\u9055\u3044\uff09\u304c\u3001\u3053\u3053\u306e\u300c\u9055\u3044\u300d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3068\u306f\u3044\u3048\u3001VB \u306e\u5834\u5408\u306f\u3001\u540d\u524d\u3067\u76f8\u4e92\u5909\u63db\u3057\u3066\u308b\u308f\u3051\u3060\u304b\u3089\u3001VC++ \u306e\u5834\u5408\u3082\u305d\u308c\u3092\u8e0f\u8972\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u306e\u306b&#8230;\u611a\u75f4\u611a\u75f4\u3002\u3068\u3044\u3046\u5177\u5408\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001MFC \u7531\u6765\u306e CButton \u3084 CEdit \u3068\u3044\u3046\u6a19\u6e96\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30af\u30e9\u30b9\u3068\u3001XAML \u3067\u63d0\u4f9b\u3055\u308c\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff08System.UI\uff09\u3068\u306f\u76f8\u6027\u304c\u60aa\u3044\u3001\u3063\u3066\u3053\u3068\u306a\u3093\u3067\u3059\u304b\u306d\u3047\u3002\u3072\u305f\u3059\u3089\u3001VC++ \u304c XAML \u3092\u6271\u3048\u306a\u3044\u306e\u306f\u3001MFC \u81ea\u4f53\u304c\u30cd\u30c3\u30af\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u306f\u3001c++\/cx \u304b\u3089 MFC \u3092\u3072\u3063\u307a\u306f\u304c\u3057\u3066\u3001WinRT \u3068\u3044\u3046 COM \u3067\u518d\u69cb\u7bc9\u3092\u3057\u3066\u3001\u4fbf\u5229\u30af\u30e9\u30b9\u90e8\u5206\uff08Platform::String\u95a2\u4fc2\uff09\u3068UI\u90e8\u5206\uff08Windows::UI::Xaml\u95a2\u4fc2\uff09\u3060\u3051\u3092\u6b8b\u3059\u3068\u3044\u3046\u306e\u306f\u5229\u306b\u53f6\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001<\/p>\n<p>\u307e\u3041\u3001metro style \u306e\u5834\u5408\u306f\u5fc5\u8981\u3067\u3042\u308c\u3070 c++\/cx \u3067\u7d44\u3080\uff08OpenCV, Fortran \u306e\u7d44\u307f\u5408\u308f\u305b\u3068\u304b\uff09\u9078\u629e\u80a2\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3058\u3083\u3042 desktop \u306f\u3069\u3046\u3059\u308b\u306e\u304b\uff1f\u3063\u3066\u3053\u3068\u3067\u3001c++\/cli \u3092\u4f7f\u3044\u7d9a\u3051\u308b\u306e\u304b\uff08\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\u304c\u52b9\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u3057\uff09\u3001\u753b\u9762\u90e8\u5206\u306f C# \u306b\u4efb\u305b\u3066\u3001\u30b3\u30a2\u306a\u3068\u3053\u308d\u306f MFC \u3092\u542b\u3080VC++ \u3067\u7d44\u3080\u306e\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u66f4\u306b\u3001\u65e2\u5b58\u306e\u30a2\u30d7\u30ea\u306b\u65b0\u3057\u3044\u753b\u9762\u3092\u8ffd\u52a0\u3059\u308b\u306e\u306f\u3001\u3053\u306e resource.h \u3068\u4ed8\u304d\u5408\u3063\u3066\u3044\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u304b\uff1f\u3063\u3066\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u3041\u3002\u30ec\u30ac\u30b7\u30fc\u3068\u3044\u3048\u3070\u30ec\u30ac\u30b7\u30fc\u306a\u308f\u3051\u3067\u3059\u304c\u3002<\/p>\n<p>XAML \u6642\u4ee3\u306e\u30a2\u30a4\u30c7\u30a2\u3092\u501f\u7528\u3057\u3066\u3001\u30c7\u30b6\u30a4\u30ca\u81ea\u4f53\u3092 C# \u3067\u4f5c\u308a\u3001\u305d\u3057\u3066 C++ \u306e\u30b3\u30fc\u30c9\u3092\u5410\u304d\u51fa\u3055\u305b\u308b\u3068\u3044\u3046\u9006\u5411\u304d\u306e\u3084\u308a\u65b9\u3082\u3042\u308a\u304b\u306a\u3001\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002C++ \u3060\u3051\u3067\u3001\u753b\u9762\u3092 wisywig \u3067\u4f5c\u6210\u3057\u305f\u5f8c\u306b\u3001*.rc, resource.h \u304b\u3064\u3001\u30d5\u30a9\u30fc\u30e0\u95a2\u9023\u306e\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u3092\u6574\u5408\u6027\u304c\u3042\u3046\u3088\u3046\u306b\u5f04\u308b\u3001\u3068\u3044\u3046\u306e\u306f\u7d50\u69cb\u306a\u624b\u9593\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092 C# \u3067\u3084\u308d\u3046\u3068\u3059\u308c\u3070\u52b9\u7387\u3088\u304f\u66f8\u3051\u308b\u3067\u3057\u3087\u3046\u3002\u7279\u306b\u30c7\u30b6\u30a4\u30ca\u90e8\u5206\u306f\u697d\u304b\u3082\u3001\u3068\u601d\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3056\u3063\u3068\u30a2\u30a4\u30c7\u30a2\u3092\u66f8\u3044\u3066\u304a\u304f\u3068\u3001<\/p>\n<p>\u65b9\u91dd\u3068\u3057\u3066\u306f\u3001VB, XAML \u306e\u3088\u3046\u306b\u300c\u6587\u5b57\u5217\u300d\u3067\u5404\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540d\u524d\u4ed8\u3051\u3092\u3059\u308b\u3001\u3063\u3066\u3053\u3068\u3067\u3059\u3002\u305d\u3046\u3057\u3066\u3001\u30d5\u30a9\u30fc\u30e0\u5358\u4f4d\u3067 namespace \u304c\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306a\u69cb\u6210\u306b\u4ed5\u7acb\u3066\u76f4\u3059\u306e\u3067\u3059\u3002<br \/>\n\u65e2\u5b58\u306e CButton, CEdit \u306f\u305d\u306e\u307e\u307e\u6d41\u7528\u3067\u304d\u305f\u307b\u3046\u304c\u3088\u3044\u306e\u3067\u3001\u3053\u308c\u3092\u62e1\u5f35\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nclass Form1\r\n{\r\npublic:\r\n\tstatic int IDD\t\t\t\t    = (int)&quot;Form1&quot;;\r\n\tstatic int IDC_GROUP_NAME \t\t= (int)&quot;GroupName&quot;;\r\n\tstatic int IDC_LOADS_BREADTH    = (int)&quot;Breadth&quot;;\r\nprotected:\r\n\tCEdit GroupName(IDC_GROUP_NAME);\r\n\tCEdit Breadth(IDC_LOADS_BREADTH);\r\n...\r\n};\r\n<\/pre>\n<p>C++ \u306e\u5834\u5408\u3001\u5024\u306e\u521d\u671f\u5316\u304c\u76f4\u63a5\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u8003\u3048\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u6587\u5b57\u5217\u3092int\u578b\u306b\u76f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30af\u30e9\u30b9\u5185\u3067\u5b9a\u7fa9\u3059\u308b\u306e\u3067\u3001\u5b9a\u7fa9\u81ea\u4f53\u306f\u3001Form1::IDC_GROUP_NAME \u3068\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u3053\u3053\u306e\u6587\u5b57\u5217\u3068\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540d\u524d\u306f\u300cCEdit(&#8220;GroupName&#8221;)\u300d\u306e\u3088\u3046\u306b\u4e00\u81f4\u3055\u305b\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001CEdit(IDC_GROUP_NAME) \u306e\u3088\u3046\u306b\u3057\u3066\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30bd\u30fc\u30b9\u30a8\u30c7\u30a3\u30bf\u306e\u307b\u3046\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b namespace \u3092\u6307\u5b9a\u3059\u308b\u304b\u3001<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nForm1::IDD DIALOGEX 0, 0, 279, 193\r\nSTYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION\r\nCAPTION &quot;Vertical&quot;\r\nFONT 8, &quot;MS Sans Serif&quot;, 0, 0, 0x0\r\nBEGIN\r\n    LTEXT           &quot;Group name:&quot;,IDC_STATIC,5,10,77,8\r\n    LTEXT           &quot;Hatch cover no:&quot;,IDC_STATIC,5,26,77,8\r\n    EDITTEXT        Form1::IDC_GROUP_NAME,114,10,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        Form1::Breadth,114,57,92,12,ES_AUTOHSCROLL\r\nEND\r\n<\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u3001\u76f4\u63a5\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u30de\u30c3\u30c1\u30f3\u30b0\u3092\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n&quot;Form1&quot; DIALOGEX 0, 0, 279, 193\r\nSTYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION\r\nCAPTION &quot;Vertical&quot;\r\nFONT 8, &quot;MS Sans Serif&quot;, 0, 0, 0x0\r\nBEGIN\r\n    LTEXT           &quot;Group name:&quot;,IDC_STATIC,5,10,77,8\r\n    LTEXT           &quot;Hatch cover no:&quot;,IDC_STATIC,5,26,77,8\r\n    EDITTEXT        &quot;GroupName&quot;,114,10,92,12,ES_AUTOHSCROLL\r\n    EDITTEXT        &quot;Breadth&quot;,114,57,92,12,ES_AUTOHSCROLL\r\nEND\r\n<\/pre>\n<p>\u305f\u3060\u3057\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u5834\u5408\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u52d5\u304f\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u69cb\u9020\u306f\u5909\u3048\u3089\u308c\u306a\u3044\u306e\u3067\u3001\u4e0a\u8a18\u306e\u5834\u5408\u306f\u9069\u5f53\u306a\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3092\u901a\u3057\u3066\u540d\u524d\u3092\u5909\u63db\u3059\u308b\u306e\u304c\u3088\u3044\u304b\u3068\u3002<\/p>\n<p>\u4e00\u5ea6 resource.h \u306b\u76f4\u3059\u306e\u3082\u30a2\u30ea\u306a\u306e\u3067\u3059\u304c\u3001\u4f9d\u5b58\u95a2\u4fc2\u304c Form1 &lt;- resource.h \u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u3001\u30d1\u30b9\u3067\u3059\u304b\u306d\u3047\u3002<br \/>\nC\/C++ \u306e\u5834\u5408\u3001\u540c\u3058\u6587\u5b57\u5217\u306f\u540c\u3058\u30a2\u30c9\u30ec\u30b9\u306b\u683c\u7d0d\u3055\u308c\u308b\u306e\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u540d\u524d\u306f strcmp \u3092\u305b\u305a\u306b int \u578b\u306e\u6bd4\u8f03\uff08\u6b63\u78ba\u306b\u8a00\u3048\u3070\u30dd\u30a4\u30f3\u30bf\u306e\u76f4\u63a5\u6bd4\u8f03\uff09\u3067\u540c\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u3042\u3001\u5b9f\u969b\u4f5c\u308b\u304b\u3069\u3046\u304b\u306f\u5225\u3068\u3057\u3066\u3001\u30ec\u30ac\u30b7\u30fc MFC\/C++ \u306e\u30a2\u30d7\u30ea\u306e\u6539\u4fee\u306b\u3001resource.h \u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u5730\u7344\u3067\u6642\u9593\u3092\u53d6\u3089\u308c\u308b\u306e\u306f\u5acc\u306a\u306e\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u6587\u5b57\u5217\u3067\u540c\u5b9a\u3067\u304d\u308b\u30cf\u30c3\u30ad\u30f3\u30b0\u306f\u3057\u305f\u3044\u306a\u3041\u3001\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u3064\u30fc\u304b\u3001\u3084\u3089\u306a\u3044\u3068\u99c4\u76ee\u304b\u3082\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u6545\u4eca\u9803\u306b\u306a\u3063\u3066\u3001*.rc \u3084\u3089 resource.h \u3084\u3089\u306e\u8a71\u306b\u306a\u308b\u304b\u3068\u3044\u3046\u3068\uff08\u8ab0\u3082\u5206\u304b\u3089\u306a\u3044\/\u56f0\u3089\u306a\u3044\u3068\u3044\u3046\u306e\u306f\u3055\u3066\u304a\u304d\uff09\u3001 .NET \u306b\u304a\u3051\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3 \u30ac\u30a4\u30c0\u30f3\u30b9 http:\/\/www.mi &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/3570\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[],"class_list":["post-3570","post","type-post","status-publish","format-standard","hentry","category-c"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/3570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=3570"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/3570\/revisions"}],"predecessor-version":[{"id":3573,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/3570\/revisions\/3573"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=3570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=3570"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=3570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}