{"id":123,"date":"2009-03-12T01:42:35","date_gmt":"2009-03-11T16:42:35","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2009\/03\/12\/windows_mobile\/"},"modified":"2009-03-12T01:42:35","modified_gmt":"2009-03-11T16:42:35","slug":"windows_mobile","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2009\/03\/12\/windows_mobile\/","title":{"rendered":"Windows Mobile \u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/www.atmarkit.co.jp\/fnetwork\/column\/narumono31\/01.html\">iPhone \u30a2\u30d7\u30ea\u306e\u72b6\u6cc1<\/a>\u304c\u3046\u3089\u3084\u307e\u3057\u3044\u9650\u308a\u3002<\/p>\n<p>\u3093\u30fc\u6094\u3057\u3044\u3002\u4f55\u5343\u4e07\u5186\u3082\u5132\u304b\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3093\u3060\u3088\u3002\u4f55\u5343\u5186\u3067\u3082\u304a\u3063\u3051\u30fc\u306a\u3093\u3060\u3088\u3002<\/p>\n<p>Apple\u306e\u4e8b\u60c5\u306b\u306f\u3068\u3093\u3068\u758e\u3044\u306e\u3067\u3001iTunes\u3068\u304b\u3082\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3051\u3069\u3001\u3046\u307e\u3044\u3053\u3068\u8ab2\u91d1\u30b7\u30b9\u30c6\u30e0\u304c\u51fa\u6765\u4e0a\u304c\u3063\u3066\u308b\u3093\u3060\u308d\u3046\u306a\u3002<\/p>\n<p>\u89e6\u767a\u3055\u308c\u305f\u308f\u3051\u3067\u306f\u306a\u3044\u304c\u3001\u660e\u65e5\u306e\u305f\u3081\u306e\u305d\u306e1\u3068\u3057\u3066\u3001<a href=\"\/blg\/glob\/2008\/01\/post_9.html\">Windows Mobile<\/a>\u7528\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u3079\u304f\u3001\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u7684\u306a\u3082\u306e\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u3059\u3053\u3057\u305a\u3064\u3001\u91ce\u671b\u306b\u8fd1\u3065\u304f\u306e\u3060\uff01<\/p>\n<p>\u984c\u6750\u306f\u3001\u30a4\u30f3\u30c9\u5f0f\u8a08\u7b97\u3068\u3057\u3066\u307f\u308b\u3002\u6700\u8fd1\u3068\u3093\u3068\u8a08\u7b97\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u304d\u305f\u305f\u3081\u3001\u901a\u52e4\u6642\u7b49\u306e\u30a8\u30af\u30b5\u30b5\u30a4\u30ba\u7528\u3068\u3057\u3066\u4f7f\u3048\u308c\u3070\u5e78\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u624b\u9806\u3001\u306f\u307e\u308a\u30dd\u30a4\u30f3\u30c8\u30e1\u30e2\u3002<\/p>\n<h2><\/h2>\n<h4>1.\u4ed5\u69d8<\/h4>\n<p>\u8a08\u7b97\u554f\u984c\u3092\u51fa\u984c\u3002\u56de\u7b54\u5165\u529b\u3002\u6b63\u89e3\u3001\u4e0d\u6b63\u89e3\u3068\u89e3\u6cd5\u3092\u8868\u793a<\/p>\n<h4>2.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h4>\n<h5>(1) \u65b0\u898f\u4f5c\u6210\uff0d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 \u304b\u3089\u3001MFC\u30b9\u30de\u30fc\u30c8\u30c7\u30d0\u30a4\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u3076<\/h5>\n<p>MFC\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002SDK\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3088\u304f\u308f\u304b\u3089\u3093\u306e\u3067\u3068\u3063\u3064\u304d\u3084\u3059\u3044\u304b\u3068\u601d\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"134\" alt=\"wmapp01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp01_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<h5>(2) \u30a6\u30a3\u30b6\u30fc\u30c9\u3067\u3001Windows Mobile 6 Standard&#160; SDK\u3092\u9078\u629e<\/h5>\n<p><a href=\"\/blg\/glob\/2008\/01\/post_9.html\">\u81ea\u6a5f<\/a>\u304c\u3001Windows Mobile 6 Standard \u306a\u306e\u3067\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"149\" alt=\"wmapp02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp02_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p>\u304a\u3063\u3068\u3001\u3053\u3053\u306b\u304f\u308b\u307e\u3067\u306b\u3001\u6e96\u5099\u304c\u7d50\u69cb\u5fc5\u8981\u306a\u306e\u3067\u3001\u8208\u5473\u3042\u308b\u65b9\u306f\u3001<a href=\"\/tips\/wiki.cgi?page=Windows+Mobile\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3002<\/p>\n<h5>(3) \u307e\u305a\u306f\u3001\u611f\u3058\u3092\u3064\u304b\u3080\u305f\u3081\u306a\u306e\u3067\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30d9\u30fc\u30b9\u3067<\/h5>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"149\" alt=\"wmapp03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp03_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<h4>3.\u753b\u9762\u307e\u308f\u308a\u306e\u5b9f\u88c5\u624b\u9806<\/h4>\n<h5>(1) \u30e1\u30cb\u30e5\u30fc\u306e\u8ffd\u52a0<\/h5>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_mnu01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"138\" alt=\"wmapp_mnu01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_mnu01_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p><font color=\"#ff0000\">\u306f\u307e\u308a\u305d\u306e\uff11\u3002<\/font><\/p>\n<p>\u3082\u3068\u3082\u3068\u3001\u5b58\u5728\u3057\u3066\u3044\u308b\u3001IDR_MAINFRAME \u30e1\u30cb\u30e5\u30fc\u306f\u3044\u304f\u3089\u4fee\u6b63\u3057\u3066\u3082\u3001\u306a\u306b\u3082\u304a\u3053\u3089\u306a\u3044\u3002\u4ee5\u4e0b\u306e\u5bfe\u5fdc\u3092\u3059\u308b\u307e\u3067\u30011\u6642\u9593\u7a0b\u5ea6\u306e\u306f\u307e\u308a\u3002<\/p>\n<p>IDR_MENU\u3092\u8ffd\u52a0\u3057\u3001\u30e1\u30cb\u30e5\u30fc\u3092\u4f5c\u6210\u3002\u30c0\u30a4\u30a2\u30ed\u30b0 cpp \u30d5\u30a1\u30a4\u30eb\u306e\u3001OnInitDialog \u95a2\u6570\u5185\u306e\u3001dlgCommandBar.InsertMenuBar\u306e\u5f15\u6570\u3092\u5909\u66f4\u3057\u305f\u3089\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"670\" border=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"668\">\n<p>BOOL CindcalcDlg::OnInitDialog()            <br \/>{             <br \/>&#160;&#160;&#160; CDialog::OnInitDialog(); <\/p>\n<p>&#160;&#160;&#160; \/\/ \u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30a4\u30f3 \u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u306a\u3044\u5834\u5408\u3001            <br \/>&#160;&#160;&#160; \/\/&#160; Framework \u306f\u3001\u3053\u306e\u8a2d\u5b9a\u3092\u81ea\u52d5\u7684\u306b\u884c\u3044\u307e\u3059\u3002             <br \/>&#160;&#160;&#160; SetIcon(m_hIcon, TRUE);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/ \u5927\u304d\u3044\u30a2\u30a4\u30b3\u30f3\u306e\u8a2d\u5b9a             <br \/>&#160;&#160;&#160; SetIcon(m_hIcon, FALSE);&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/\/ \u5c0f\u3055\u3044\u30a2\u30a4\u30b3\u30f3\u306e\u8a2d\u5b9a <\/p>\n<p>&#160;&#160;&#160; if (!m_dlgCommandBar.Create(this) ||            <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; !m_dlgCommandBar.InsertMenuBar(IDR_MENU <font color=\"#008000\">\/* IDR_MAINFRAME *\/<\/font>))             <br \/>&#160;&#160;&#160; {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; TRACE0(&quot;CommandBar \u306e\u4f5c\u6210\u306b\u5931\u6557\u3057\u307e\u3057\u305f\\n&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; return FALSE;&#160;&#160;&#160;&#160;&#160; \/\/ \u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002             <br \/>&#160;&#160;&#160; }<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; :<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_mnu03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"185\" alt=\"wmapp_mnu03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_mnu03_thumb.jpg\" width=\"175\" border=\"0\" \/><\/a>&#160;<\/p>\n<h5>(2) \u30e1\u30cb\u30e5\u30fc\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b<\/h5>\n<p>\u30ea\u30bd\u30fc\u30b9\u30a8\u30c7\u30a3\u30bf\u306b\u623b\u308a\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u62bc\u4e0b\u3055\u308c\u305f\u3068\u304d\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u3066\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u30fb\u30e1\u30cb\u30e5\u30fc\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u8ffd\u52a0\u3092\u9078\u629e<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"244\" alt=\"wmapp_proc01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc01_thumb.jpg\" width=\"171\" border=\"0\" \/><\/a> <\/p>\n<p>\u30fb\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u8ffd\u52a0\u5148\u3092\u9078\u629e\u3002\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p>\u300c\u8ffd\u52a0\u3057\u3066\u7de8\u96c6\u300d\u3067\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"153\" alt=\"wmapp_proc02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc02_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<h5>(3) \u30c0\u30a4\u30a2\u30ed\u30b0\u753b\u9762\u306e\u4f5c\u6210<\/h5>\n<p>\u30c0\u30a4\u30a2\u30ed\u30b0\u30a8\u30c7\u30a3\u30bf\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u307a\u305f\u307a\u305f\u306f\u308a\u3064\u3064\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u30e1\u30f3\u30d0\u30fc\u5909\u6570\u3068\u3057\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5909\u6570\u306e\u8ffd\u52a0\u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"209\" alt=\"wmapp_proc03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc03_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p>\u5909\u6570\u540d\u3092\u9069\u5f53\u306b\u3064\u3051\u3066\u3001\u5b8c\u4e86\u3059\u308b\u3068\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u5909\u6570\u3068\u3057\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"149\" alt=\"wmapp_proc04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc04_thumb.jpg\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<h5>(4) Enter\u30ad\u30fc\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h5>\n<p><font color=\"#ff0000\">\u306f\u307e\u308a\u305d\u306e2\u3002<\/font><font color=\"#000000\">\u3068\u3044\u3046\u307b\u3069\u3067\u3082\u306a\u3044\u3002\u3050\u3050\u3063\u305f\u3089\u3059\u3050\u308f\u304b\u3063\u305f\u3002<\/font><\/p>\n<p>\u30c0\u30a4\u30a2\u30ed\u30b0\u30d9\u30fc\u30b9\u306a\u306e\u3067\u3001Enter\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001\u753b\u9762\u304c\u9589\u3058\u3066\u3057\u307e\u3046\u306e\u3067\u3001CDialog::PreTranslateMessage \u95a2\u6570\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3001Enter\u30ad\u30fc\u62bc\u4e0b\u6642\u306e\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"576\" border=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"574\">\n<p>BOOL CindcalcDlg::PreTranslateMessage(MSG* pMsg)            <br \/>{             <br \/>&#160;&#160;&#160; \/\/ TODO: \u3053\u3053\u306b\u7279\u5b9a\u306a\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u304b\u3001\u3082\u3057\u304f\u306f\u57fa\u672c\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002 <\/p>\n<p><font color=\"#0000ff\">&#160;&#160;&#160; if(pMsg-&gt;message == WM_KEYDOWN) {              <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; switch(pMsg-&gt;wParam) {               <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; case VK_RETURN: <\/font><\/p>\n<p><font color=\"#0000ff\">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OnAnswer();&#160;&#160;&#160; \/\/ Enter\u30ad\u30fc\u62bc\u4e0b\u3067\u3001\u547c\u3073\u51fa\u3059\u51e6\u7406\u3002              <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return TRUE;               <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; default:               <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;               <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }               <br \/>&#160;&#160;&#160; } <\/font><\/p>\n<p>&#160;&#160;&#160; return CDialog::PreTranslateMessage(pMsg);            <br \/>}<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#160;<\/p>\n<h4>4. \u8a08\u7b97\u7df4\u7fd2\u30af\u30e9\u30b9\u306e\u8ffd\u52a0<\/h4>\n<h5>(1) \u7c21\u5358\u306a\u7df4\u7fd2\u30af\u30e9\u30b9(\u666e\u901a\u306eC++\u30af\u30e9\u30b9)\u3092\u4f5c\u6210\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3059\u308b\u3002<\/h5>\n<p>\u554f\u984c\u306e\u5024\u304b\u3089\u3001\u89e3\u6cd5\u3092\u8868\u793a\u3055\u305b\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3001\u9762\u5012\u304f\u3055\u304f\u306a\u3063\u305f\u306e\u3067\u3084\u3081\u3002<\/p>\n<p>\u5358\u7d14\u306b\u8a08\u7b97\u554f\u984c\u3092\u4f5c\u6210\u3059\u308b\u3060\u3051\u306e\u30af\u30e9\u30b9<\/p>\n<p><font color=\"#ff0000\">\u306f\u307e\u308a\u305d\u306e3\uff0e<\/font><\/p>\n<p>\u307e\u3044\u3063\u305f\u30022\u6642\u9593\u7a0b\u5ea6\u306f\u307e\u3063\u305f\u306e\u304c\u3001Windows Mobile \u3092 Visual Studio\u3067\u958b\u767a\u3059\u308b\u5834\u5408\u3001<a href=\"\/tips\/wiki.cgi?page=Windows+Mobile+6+VisualStudio2005+%A4%C7+time+%B4%D8%BF%F4%A4%AC%BB%C8%A4%A8%A4%CA%A4%A4\">time_t \u95a2\u4fc2\u306e\u95a2\u6570\u304c\u5229\u7528\u3067\u304d\u306a\u3044<\/a>\u307f\u305f\u3044\u3002<\/p>\n<p>\u4e71\u6570\u306eSeed\u306b\u73fe\u5728\u6642\u9593\u3092\u53d6\u5f97\u3057\u305f\u3044\u3060\u3051\u306a\u306e\u306b\u3002\u4ee5\u4e0b\u306e\u9752\u5b57\u90e8\u5206\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u4f55\u3068\u304b\u52d5\u3044\u305f\u3002<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"571\" border=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"569\">\n<p>#include &quot;StdAfx.h&quot;            <br \/>#include &quot;CompPractice.h&quot; <\/p>\n<p>CompPractice::CompPractice(void)            <br \/>: m_practice_type(0)             <br \/>, m_len(0)             <br \/>, m_answer(0)             <br \/>, m_ope1(0)             <br \/>, m_ope2(0)             <br \/>{             <br \/>} <\/p>\n<p>CompPractice::~CompPractice(void)            <br \/>{             <br \/>} <\/p>\n<p>\/\/ \u7df4\u7fd2\u958b\u59cb \u7df4\u7fd2\u30bf\u30a4\u30d7 1:\u8db3\u3057\u7b97\u30012:\u5f15\u304d\u7b97\u30013:\u639b\u3051\u7b97 \u3068\u3001\u6841\u6570\u3092\u4e0e\u3048\u308b            <br \/>int CompPractice::Start(int practice_type, int len)             <br \/>{             <br \/>&#160;&#160;&#160; m_practice_type = practice_type;             <br \/>&#160;&#160;&#160; m_len = len;             <br \/>&#160;&#160;&#160; return 0;             <br \/>} <\/p>\n<p>\/\/ \u6b21\u306e\u554f\u984c            <br \/>CString CompPractice::NextPractice(void)             <br \/>{             <br \/>&#160;&#160;&#160; int mn = (int)(pow(10, m_len) &#8211; 1.0); <\/p>\n<p>&#160;&#160;&#160; <font color=\"#0000ff\">SYSTEMTIME st;              <br \/>&#160;&#160;&#160; GetSystemTime(&amp;st);               <br \/>&#160;&#160;&#160; CTime ct = CTime(st);               <br \/>&#160;&#160;&#160; srand((unsigned)ct.GetTime());               <br \/><\/font>&#160;&#160;&#160; m_ope1 = rand() % mn;             <br \/>&#160;&#160;&#160; m_ope2 = rand() % mn; <\/p>\n<p>&#160;&#160;&#160; CString ope = _T(&quot;&quot;);            <br \/>&#160;&#160;&#160; switch(m_practice_type) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; case 1:             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ope = _T(&quot;\uff0b&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; m_answer = m_ope1 + m_ope2;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; case 2:             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ope = _T(&quot;\uff0d&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; m_answer = m_ope1 &#8211; m_ope2;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; case 3:             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ope = _T(&quot;&#215;&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; m_answer = m_ope1 * m_ope2;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; default:             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; break;             <br \/>&#160;&#160;&#160; } <\/p>\n<p>&#160;&#160;&#160; CString exp = _T(&quot;&quot;);            <br \/>&#160;&#160;&#160; exp.Format(_T(&quot;%d %s %d \uff1d&quot;), m_ope1, ope,&#160; m_ope2); <\/p>\n<p>&#160;&#160;&#160; return exp;            <br \/>} <\/p>\n<p>\/\/ \u56de\u7b54\u306e\u30c1\u30a7\u30c3\u30af            <br \/>bool CompPractice::Answer(int ans_num)             <br \/>{             <br \/>&#160;&#160;&#160; return (m_answer == ans_num);             <br \/>} <\/p>\n<p>\/\/ \u6b63\u7b54\u306e\u53d6\u5f97            <br \/>int CompPractice::GetAnswer(void)             <br \/>{             <br \/>&#160;&#160;&#160; return m_answer;             <br \/>}<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>(2) \u8a08\u7b97\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3059<\/h5>\n<p>\u5148\u307b\u3069\u306e\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u304b\u3089\u3001\u4e0a\u8a18\u8a08\u7b97\u30af\u30e9\u30b9\u306e\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3002<\/p>\n<p>MFC\u306eCString\u30af\u30e9\u30b9\u306e\u5229\u7528\u6cd5\u306a\u3069\u3082\u306b\u308f\u304b\u306b\u306f\u899a\u3048\u304d\u308c\u306a\u3044\u306e\u3067\u3001\u4f7f\u3044\u305d\u3046\u306a\u306e\u3092<a href=\"\/tips\/wiki.cgi?page=MFC+CString\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u304a\u304f\u3002<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"400\" border=\"1\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"400\">\n<p>void CindcalcDlg::OnAnswer(void)            <br \/>{             <br \/>&#160;&#160;&#160; \/\/ \u6b21\u306e\u554f\u984c             <br \/>&#160;&#160;&#160; CString str_ans = NULL;             <br \/>&#160;&#160;&#160; CString old_practice = NULL;             <br \/>&#160;&#160;&#160; m_txt_ans.GetWindowTextW(str_ans);             <br \/>&#160;&#160;&#160; m_txt_ans.SetWindowTextW(_T(&quot;&quot;));             <br \/>&#160;&#160;&#160; m_lbl_exp.GetWindowTextW(old_practice); <\/p>\n<p>&#160;&#160;&#160; int ans = _ttoi(str_ans);            <br \/>&#160;&#160;&#160; bool ret = m_practice-&gt;Answer(ans);             <br \/>&#160;&#160;&#160; CString msg = _T(&quot;&quot;);             <br \/>&#160;&#160;&#160; msg.Format(_T(&quot;\u3010\u6b63\u7b54\u3011%s %d \\r\\n\u3010%s\u3011\u3042\u306a\u305f\u306e\u7b54\u3048 %s&quot;)             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , old_practice             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , m_practice-&gt;GetAnswer()             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , (ret)?_T(&quot;\u6b63\u89e3&quot;):_T(&quot;\u4e0d\u6b63\u89e3&quot;)             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; , str_ans             <br \/>&#160;&#160;&#160; ); <\/p>\n<p>&#160;&#160;&#160; m_lbl_ans.SetWindowTextW(msg);&#160;&#160;&#160; <br \/>&#160;&#160;&#160; m_lbl_exp.SetWindowTextW(m_practice-&gt;NextPractice());             <br \/>}<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.\u52d5\u304b\u3059<\/h4>\n<p>\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3060\u3068\u3053\u3093\u306a\u611f\u3058\u3002\u5b9f\u6a5f\u3067\u3082\u3061\u3083\u3093\u3068\u52d5\u3044\u3066\u3044\u308b\u611f\u3058\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc06.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"307\" alt=\"wmapp_proc06\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WindowsMobile_A62\/wmapp_proc06_thumb.jpg\" width=\"174\" border=\"0\" \/><\/a> <\/p>\n<h4>6.\u307e\u3068\u3081<\/h4>\n<p>\u307e\u305f\u4e00\u6b69\u91ce\u671b\u306b\u8fd1\u3065\u3044\u305f\uff01<\/p>\n<p>\u6b21\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u306e\u30ea\u30ea\u30fc\u30b9\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u3069\u3046\u3084\u3063\u3066\u4f5c\u6210\u3059\u308b\u304b\u8abf\u3079\u308b\u3002<\/p>\n<p>\u203b <a href=\"\/blg\/glob\/2009\/03\/windows_mobile_1.html\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306e\u4f5c\u6210<\/a>\u3078<\/p>\n","protected":false},"excerpt":{"rendered":"<p>iPhone \u30a2\u30d7\u30ea\u306e\u72b6\u6cc1\u304c\u3046\u3089\u3084\u307e\u3057\u3044\u9650\u308a\u3002 \u3093\u30fc\u6094\u3057\u3044\u3002\u4f55\u5343\u4e07\u5186\u3082\u5132\u304b\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3093\u3060\u3088\u3002\u4f55\u5343\u5186\u3067\u3082\u304a\u3063\u3051\u30fc\u306a\u3093\u3060\u3088\u3002 Apple\u306e\u4e8b\u60c5\u306b\u306f\u3068\u3093\u3068\u758e\u3044\u306e\u3067\u3001iTunes\u3068\u304b\u3082\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3051\u3069\u3001\u3046\u307e\u3044\u3053\u3068\u8ab2\u91d1\u30b7\u30b9\u30c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[12,15,22],"tags":[],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-visualstudio","category-windows-mobile","category-mobile"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}