{"id":43592,"date":"2019-05-11T23:18:33","date_gmt":"2019-05-11T14:18:33","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=43592"},"modified":"2019-05-12T07:00:13","modified_gmt":"2019-05-11T22:00:13","slug":"visual-studio-2019%e3%81%a7dxlib%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=43592","title":{"rendered":"Visual Studio 2019\u3067DxLib\u3092\u4f7f\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>Visual Studio 2019(Community\u7248)\u3067DxLib\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002<\/p>\n<p>\u5148\u65e5\u3001Visual Studio 2019\u304c\u51fa\u308b\u524d\u306b\u3001\u3061\u3087\u3063\u3068DxLib\u3092\u4f7f\u3063\u3066\u307f\u308b\u305f\u3081\u306bVisual Studio 2017(Community\u7248)\u3067DxLib 3.0\u3068\u3044\u3046\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u3044\u3066\u3046\u307e\u304f\u884c\u304b\u305a\u60a9\u3093\u3067\u3044\u305f\u3002<\/p>\n<p>DxLib\u306e\u30d0\u30fc\u30b8\u30e7\u30f33.20c\u3068\u3044\u3046\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u51fa\u3066\u3044\u308b\u306e\u306b\u6700\u8fd1\u6c17\u304c\u3064\u3044\u3066\u3001\u305d\u308c\u306b\u5dee\u3057\u66ff\u3048\u305f\u3089\u7121\u4e8bVisual Studio 2017\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u3066\u3001Visual Studio 2019\u3067\u3082\u540c\u69d8\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>\u6b21\u306e\u3088\u3046\u306a\u30b5\u30f3\u30d7\u30eb\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u308b\u5834\u5408\u306e\u4f8b\u3092\u793a\u3059\u3002<br \/>\nhello.cpp\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#include &quot;DxLib.h&quot;\r\n\r\nint WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){\r\n        ChangeWindowMode(TRUE), DxLib_Init(), SetDrawScreen( DX_SCREEN_BACK ); \/\/\u30a6\u30a3\u30f3\u30c9\u30a6\u30e2\u30fc\u30c9\u5909\u66f4,\u521d\u671f\u5316,\u88cf\u753b\u9762\u8a2d\u5b9a\r\n\r\n        int Font00, Font01;\r\n        Font00  = CreateFontToHandle( &quot;\u30e1\u30a4\u30ea\u30aa&quot;,      70,  3, DX_FONTTYPE_ANTIALIASING_EDGE ) ;\/\/&quot;\u30e1\u30a4\u30ea\u30aa&quot;  \u306e30pt,\u592a\u30553\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u4f5c\u6210\r\n        Font01  = CreateFontToHandle( &quot;\uff2d\uff33 \u30b4\u30b7\u30c3\u30af&quot;, 50,  9, DX_FONTTYPE_NORMAL ) ;           \/\/&quot;MS\u30b4\u30b7\u30c3\u30af&quot;\u306e50pt,\u592a\u30559\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u4f5c\u6210\r\n        \r\n        \/\/ while( \u88cf\u753b\u9762\u3092\u8868\u753b\u9762\u306b\u53cd\u6620, \u30e1\u30c3\u30bb\u30fc\u30b8\u51e6\u7406, \u753b\u9762\u30af\u30ea\u30a2 )\r\n        while( !ScreenFlip() &amp;&amp; !ProcessMessage() &amp;&amp; !ClearDrawScreen() ){\r\n\r\n                DrawStringToHandle( 100, 100, &quot;Hello \u30ef\u30fc\u30eb\u30c9\uff01&quot;, GetColor(255,255,255), Font00 );\r\n                DrawStringToHandle( 100, 300, &quot;Hello \u30ef\u30fc\u30eb\u30c9\uff01&quot;, GetColor(255,255,255), Font01 );\r\n\r\n        }\r\n\r\n        DxLib_End();\r\n        return 0;\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u306e\u3092\u8a66\u3057\u305f\u3002<br \/>\nnmake\u3092\u4f7f\u3046\u305f\u3081\u3001makefile.txt\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nTARGET\t=\thello.exe\r\nOBJS\t=\thello.obj\r\nLIBS\t=\tDxLib.lib\r\nLIBPATH\t=\tdxlib\r\nCFLAGS\t=\t\/c \/I$(LIBPATH)\r\nLFLAGS\t=\t\/link\/LIBPATH:$(LIBPATH)\r\n\r\n.cpp.obj:\r\n\tcl $(CFLAGS) $&lt;\r\n\r\n$(TARGET):\t$(OBJS)\r\n\tcl $(OBJS) $(LIBS) $(LFLAGS)\r\n<\/pre>\n<p>\u3042\u3068\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u624b\u9806\u3092bat\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u3066\u5b9f\u884c\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n@echo &quot;--------- \u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a ----------&quot;\r\nrem set environment for Visual Studio 2019\r\ncall &quot;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat&quot; x86\r\n\r\n@echo &quot;--------- \u30b3\u30f3\u30d1\u30a4\u30eb ----------&quot;\r\ndel *.obj\r\nnmake -f makefile.txt\r\n<\/pre>\n<p>\u30d3\u30eb\u30c9\u304c\u7121\u4e8b\u306b\u5b8c\u4e86\u3059\u308b\u3068\u3001hello.exe\u3068\u3044\u3046\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3002<br \/>\n<a href=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/05\/Image1.png\"><img loading=\"lazy\" src=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/05\/Image1.png\" alt=\"\" width=\"642\" height=\"512\" class=\"alignnone size-full wp-image-43593\" srcset=\"http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/05\/Image1.png 642w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/05\/Image1-300x239.png 300w, http:\/\/kako.com\/blog\/wp\/wp-content\/uploads\/2019\/05\/Image1-624x498.png 624w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p>\u7121\u4e8b\u3001Visual Studio 2019\u3067DxLib 3.20c\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2019(Community\u7248)\u3067DxLib\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002 \u5148\u65e5\u3001Visual Studio 2019\u304c\u51fa\u308b\u524d\u306b\u3001\u3061\u3087\u3063\u3068DxLib\u3092\u4f7f\u3063\u3066\u307f\u308b\u305f\u3081\u306bVisual Studio 2017(Co [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43592"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43592"}],"version-history":[{"count":2,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43592\/revisions"}],"predecessor-version":[{"id":43595,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43592\/revisions\/43595"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43592"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}