Let's modify the computer Go program CgfGoBan to support multiple program languages

Previous article: http://qiita.com/muzudho1/items/a803ad17b6fae77f153d

(CgfGoBan) http://www.yss-aya.com/cgfgoban_j.html

The CGF board can be downloaded from the English version page.

Gazo

Let's unzip it.

Gazo

The contents are

-source of cgfgoban.exe -source of cgfthink.dll -Executable file -Instructions -Sound of placing stones

It has become. What you want to do here is to modify cgfthink.dll to your own.

Source of cgfthink.dll

Gazo

The source is like Visual C ++ 6.0, but I want to match it with Visual Studio 2015 C ++ in my environment. Double-click cgfthink.dsw for the time being.

It will be upgraded, so I will proceed.

Gazo

It won't delete the old files, so I'll delete them.

Gazo

It will be like this.

From now on, I'll double-click cgfthink.sln to launch Visual Studio 2015.

This file is a .dll and cannot be executed. Just compile it.

Even if you compile this as it is

output

1>------ Build started: Project: cgfthink, Configuration: Debug Win32 ------
1>cl : Command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

A compile error occurs.

On the initial screen

Gazo

In Debug mode, I think the CPU is x86.

Go to [Build]-[Configuration Manager ...] Let's create a new configuration for Debug mode for now.

Gazo

Select [] for the CPU, copy x86 and create x64 settings, and so on.

I just renamed it to x64 and didn't change the settings, so when I compile it

output

1>------ Build started: Project: cgfthink, Configuration: Debug x64 ------
1>  cgfthink.c
1>cgfthink.c(85): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>  C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1396): note: see declaration of '_vsnprintf'
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfthink\x64\Debug\cgfthink.dll) does not match the Linker's OutputFile property value (C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfthink\Debug\cgfthink.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>     Creating library .\Debug\cgfthink.lib and object .\Debug\cgfthink.exp
1>  cgfthink.vcxproj -> C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfthink\x64\Debug\cgfthink.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

It compiles, but the CPU settings are still x86.

Gazo

Let's open the project properties.

By the way, I thought that it would be convenient for people who are starting to start the Go program if I write it down, so I purposely pasted the image and wrote the article. Today's Japanese teens and 20s don't have a personal computer. You're looking at the website on your smartphone.

If you think that it is useless to write such an article, it is better to write it in English and have it picked up by Google search. And those who make games will come in from Unity. I feel that the demand for basic operations of Visual Studio 2015 C ++ is small, but that's fine. If you want to write an article that you want an unspecified number of people to read widely, you shouldn't write it on Qiita.

How to: Set up a Visual C ++ project for a 64-bit platform (MSDN) https://msdn.microsoft.com/ja-jp/library/9yb4317s.aspx

Or rather, for Visual Studio 2017

Do you want to download it?

(Visual Studio 2017) https://www.visualstudio.com/ja/vs/whatsnew/

It seems kind to follow the Visual Studio 2017 installer.

Installation time is long. I should have made a note of the start time. I can't tell from the meter how many hours it will take. It seems that older versions of Visual Studio shouldn't be running, and I have nothing to do.

Lesson: Install in the middle of the night.

If you use Visual Studio 2017, you can also select to support 64-bit CPU by default.

Gazo

This is the solution! Let's upgrade to Visual Studio 2017 without going through Visual Studio 2015.

Gazo

The CGF board can no longer be read, probably because it was a 64-bit version. Why not make the CGF board a 64-bit version as well?

1>------Skip build:project:cgfgoban,Constitution:Debug Win32 ------
1>The project has not been selected to build for this solution configuration.
==========Build:Successful or up-to-date status 0, failure 0, skip 1==========

Why don't you upgrade this one? Let's start over by unzipping the .zip file.

If you open ** cgfgoban.dsp **, will it be updated?

1>------Start build:project:cgfgoban,Constitution:Debug x64 ------
1>cgfgoban.cpp
1>cgfgoban.cpp(107): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(114): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(115): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(117): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(120): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(123): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(126): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(130): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(151): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(152): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(154): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(155): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(167): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(172): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgfgoban.cpp(197): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgfgoban.cpp(249): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_main.cpp
1>cgf_pipe.cpp
1>cgf_pipe.cpp(29): warning C4244: 'Initializing': 'intptr_t'From'long'It is a conversion to. Data may be lost.
1>cgf_pipe.cpp(24): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_pipe.cpp(155): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_pipe.cpp(174): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(2254): note: 'sscanf'Check the declaration of
1>cgf_pipe.cpp(176): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(568): note: 'stricmp'Check the declaration of
1>cgf_pipe.cpp(177): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(568): note: 'stricmp'Check the declaration of
1>cgf_pipe.cpp(195): warning C4267: 'argument': 'size_t'From'DWORD'Converted to. Data may be lost.
1>cgf_pipe.cpp(285): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(286): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(293): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(319): warning C4267: 'Initializing': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_pipe.cpp(327): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_pipe.cpp(303): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(308): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(318): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_pipe.cpp(325): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 'strcat'Check the declaration of
1>cgf_pipe.cpp(326): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 'strcat'Check the declaration of
1>cgf_pipe.cpp(355): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(356): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_pipe.cpp(394): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_term.cpp
1>cgf_term.cpp(101): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_term.cpp(387): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp
1>cgf_win.cpp(370): warning C4244: 'return': 'WPARAM'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(341): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(420): warning C4244: '=': 'SIZE_T'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(768): warning C4244: 'Initializing': 'WPARAM'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(432): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(433): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(449): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(450): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(769): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1118): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(1218): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1400): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1401): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1429): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1437): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1446): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1463): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1511): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1512): warning C4244: '=': 'LRESULT'From'int'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1337): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1360): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1373): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1484): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1585): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1625): warning C4244: 'argument': 'LPARAM'From'LONG'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1816): warning C4267: 'argument': 'size_t'From'DWORD'Converted to. Data may be lost.
1>cgf_win.cpp(1757): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(505): note: 'localtime'Check the declaration of
1>cgf_win.cpp(1770): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1771): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1804): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1811): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(568): note: 'stricmp'Check the declaration of
1>cgf_win.cpp(1871): warning C4244: '=': '__int64'From'WORD'It is a conversion to. Data may be lost.
1>cgf_win.cpp(1862): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1863): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1867): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1873): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(1889): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(1905): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(568): note: 'stricmp'Check the declaration of
1>cgf_win.cpp(1907): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _stricmp. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(568): note: 'stricmp'Check the declaration of
1>cgf_win.cpp(2085): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2089): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2108): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2112): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2116): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2120): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2124): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2217): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2214): warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1465): note: 'vsprintf'Check the declaration of
1>cgf_win.cpp(2220): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(346): note: 'strncpy'Check the declaration of
1>cgf_win.cpp(2238): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(505): note: 'localtime'Check the declaration of
1>cgf_win.cpp(2347): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(346): note: 'strncpy'Check the declaration of
1>cgf_win.cpp(2348): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(346): note: 'strncpy'Check the declaration of
1>cgf_win.cpp(2349): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(346): note: 'strncpy'Check the declaration of
1>cgf_win.cpp(2350): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(346): note: 'strncpy'Check the declaration of
1>cgf_win.cpp(2398): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(505): note: 'localtime'Check the declaration of
1>cgf_win.cpp(2520): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2489): warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1465): note: 'vsprintf'Check the declaration of
1>cgf_win.cpp(2493): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(2494): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 'strcat'Check the declaration of
1>cgf_win.cpp(2495): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(205): note: 'fopen'Check the declaration of
1>cgf_win.cpp(2561): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2642): warning C4267: 'Initializing': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2769): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2817): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2819): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2828): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2830): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2853): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2906): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3026): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3028): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3032): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3035): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3038): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3040): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3043): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3054): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3058): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3062): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3065): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3070): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3090): warning C4267: 'argument': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(2816): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2818): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2827): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2829): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2852): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2905): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(2960): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3025): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3027): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3031): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3034): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3037): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3039): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3042): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3046): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3049): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3051): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3056): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3057): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3064): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3087): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3159): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3163): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3165): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3168): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3169): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 'strcat'Check the declaration of
1>cgf_win.cpp(3465): warning C4244: 'argument': 'UINT_PTR'From'UINT'It is a conversion to. Data may be lost.
1>cgf_win.cpp(3544): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(2254): note: 'sscanf'Check the declaration of
1>cgf_win.cpp(3583): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3632): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3683): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3685): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3687): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3689): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3712): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3724): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3744): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3746): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3748): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3750): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3785): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3804): warning C4267: '=': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_win.cpp(3810): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3811): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3814): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3815): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3816): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_win.cpp(3841): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3842): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_win.cpp(3843): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 'strcat'Check the declaration of
1>cgf_win.cpp(3855): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(119): note: 'strcpy'Check the declaration of
1>cgf_wsk.cpp
1>cgf_wsk.cpp(55): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(61): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(63): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(74): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(94): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(102): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(106): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>cgf_wsk.cpp(120): warning C4267: 'Initializing': 'size_t'From'int'Converted to. Data may be lost.
1>cgf_wsk.cpp(133): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 'sprintf'Check the declaration of
1>Generating code...
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1198,5): warning MSB8012: TargetPath(C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfgoban\x64\Debug\cgfgoban.exe)Is the Linker's OutputFile property value(C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfgoban\Debug\cgfgoban.exe)Does not match. As a result, the project may not build successfully. To solve this problem$(OutDir)、$(TargetName),and$(TargetExt)Each property value of%(Link.OutputFile)Make sure it matches the value specified in.
1>cgfgoban.vcxproj -> C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfgoban\x64\Debug\cgfgoban.exe
1>cgfgoban.vcxproj -> C:\Users\Takahashi\Documents\muzudho\Igo\Kifuwarabe_IP\cgfgoban108\cgfgoban\x64\Debug\cgfgoban.pdb (Full PDB)
1>project"cgfgoban.vcxproj"The build of is finished.
==========Build:1 Successful completion, 0 Failure, 0 No update required, 0 Skip==========

Alright, I got it.

Gazo

It seems that 64-bit versions will also start.

Thinking part

Gazo

This cgfgui_thinking is a function that returns the start (move).

As for how it works, the CGF board simply calls this function. Therefore, the place (start) where the stone is placed should be returned as the return value.

About that

"Computer Go Program CGF Go Board Protocol" (Qiita) http://qiita.com/muzudho1/items/ddf9eb068ecfce8c5ec2

I wrote in detail in. This time, I would like to consider a sample program that supports all languages other than C ++.

In other words, the part of this function

--Exporting a text file that describes the situation --Reading a text file that describes the start (move)

If you do, you can handle any language.

Consider the format of a text file that writes out the situation

board begin
3,3,3,3
3,0,0,0
3,0,0,0
...
3,0,0,0
3,3,3,3
board end

I won't write everything because it's annoying, but the board will have 21 rows and 256 columns of data. Let's say it is separated by commas.

--0: Free ―― 1: Kuroishi ―― 2: Shiraishi ―― 3: Frame

It is.

For the time being, the size of the board is fixed at 19 roadbed and omitted. Komi is also fixed at 6.5 and omitted.

Then, should I just write out the board?

"How to export to text in C ++" (Qiita) http://qiita.com/fantm21/items/8489b944698f9d3818ea

Is the file name loosely out.txt?

// (2017-03-17 Add begin)
#include <iostream>
#include <fstream>
// (2017-03-17 Add end)
//↑ Write at the top of the file
std::ofstream os("out.txt");
os << "test";
os.close();

It doesn't compile. That's kind of strange. ** If you look closely, this is C, not C ++. ** **

When I change cgfthink.c to cgfthink.cpp and compile it, the compilation passes, but the CGF board does not recognize cgfthink.dll.

Then write in C?

"Writing a C text file --stdio.h-[fputc, putc, fputs]" (Trash of courage) http://simd.jugem.jp/?eid=51

And this source code, Shift JIS. Is there a problem converting to Unicode?

Safely save as Shift-JIS.

"Output to file" (Programming C (Autumn semester 2006)) http://ylb.jp/2006b/proc/fileio/fileoutput.html

	// (2017-03-17 Add begin)
	//File export
	{
		FILE* fp;
		char* fname = "out.txt";
		char* str = "Hello World\nThe C Programming Language\nTest Test";

		fp = fopen(fname, "w");
		if (fp == NULL) {
			printf("%s file can not open.\n", fname);
			return -1;
		}

		//Output the current phase
		for (int y = 0; y<21; y++)
		{
			for (int x = 0; x<21; x++)
			{
				int i = y * 256 + x;
				char buffer[20];
				itoa(board[i], buffer, 10);
				fprintf(fp, buffer);
				fprintf(fp, ",");
			}
			fprintf(fp, "\n");
		}
		{
			char buffer[20];

			//Output swallowtail
			itoa(hama[0], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			itoa(hama[1], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			//Output cumulative thinking time
			itoa(sg_time[0], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			itoa(sg_time[1], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			//Output Ko
			itoa(kou_z, buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			fprintf(fp, "\n");
		}

		fclose(fp);
	}
	// (2017-03-17 Add end)

For the time being, I wrote this, but the board to be written is one before. Let's investigate a little more.

out.txt

3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
3,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,2,3,
3,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,3,
3,0,0,0,0,1,0,2,2,0,0,0,0,0,0,0,2,0,0,0,3,
3,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,2,2,0,0,3,
3,0,1,2,0,0,0,0,2,2,2,1,0,0,0,2,1,0,0,0,3,
3,0,2,0,2,1,0,0,2,0,0,2,0,0,0,0,2,0,0,0,3,
3,0,0,0,0,0,0,2,0,0,0,2,0,0,1,2,0,0,0,0,3,
3,0,0,0,0,0,2,0,0,0,2,2,0,2,1,2,0,0,0,0,3,
3,0,0,0,0,1,1,2,0,0,2,0,2,0,2,0,2,1,0,0,3,
3,0,0,0,0,0,0,2,0,0,0,0,2,1,0,2,1,0,0,0,3,
3,0,0,0,0,0,0,0,2,0,0,0,0,2,0,1,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,2,0,0,0,0,2,0,0,1,0,0,3,
3,0,0,0,1,0,0,0,0,0,2,0,0,2,1,0,1,0,0,0,3,
3,0,0,0,0,0,2,1,2,1,0,2,2,0,0,0,1,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,2,0,0,3,
3,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,1,0,0,3,
3,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
7,26,157,0,0,

It's only my imagination?

Now let's create an input file.

in.txt

4,13

If there is such a file, let's type x, y in the 13th column of the 4th column.

y*256+x

If you apply it to the formula of, you can use it on the CGF board.

No. Writing a parser in C is a hassle.

3332

And the calculated number is included. Decimal 3332 is hexadecimal 0x0d04. The order is y, x, so if you turn it over, it will match with 4,13.

	// (2017-03-17 Add begin)
	//Read file
	ret_z = -1;
	{
		FILE* fp;
		char* fname = "in.txt";
		char buffer[100];

		fp = fopen(fname, "r");
		if (fp == NULL) {
			//The file could not be read
		}
		else
		{
			if (fgets(buffer, 100, fp) != NULL) {
				ret_z = atoi(buffer);
			}
			fclose(fp);
		}
	}
	// (2017-03-17 Add end)

	if (-1 == ret_z)
	{
		ret_z = think_sample(col);
	}

By doing this, it can be used in combination with the existing random pointing. If you read in.txt, please delete it.

"Delete C language file --stdio.h-[remove]" (Trash of courage) http://simd.jugem.jp/?eid=55

Alright, I was able to delete it. The remodeling code looks like the following.

cgfthink.c cgfgui_thinking function

//Thinking routine. Return the next move.
//It is called with the initial board, game record, number of moves, turn, board size, and komi from the main body.
DLL_EXPORT int cgfgui_thinking(
	int dll_init_board[],	//Initial board
	int dll_kifu[][3],		//Game record[][0]...Coordinate,[][1]...Stone color,[][2]...Time spent (seconds)
	int dll_tesuu,			//Trouble
	int dll_black_turn,		//Turn(Black turn...1, white turn...0)
	int dll_board_size,		//Board size
	double dll_komi,		//Komi
	int dll_endgame_type,	// 0...Normal thinking, 1...Ultimate processing, 2...Show shape, 3...Display numerical values.
	int dll_endgame_board[]	//Substitute the result of the final processing.
)
{
	int z,col,t,i,ret_z;

	//Make the current phase from the game record and the initial board
	for (i=0;i<BOARD_MAX;i++) board[i] = dll_init_board[i];	//Copy the initial board
	board_size = dll_board_size;
	hama[0] = hama[1] = 0;
	sg_time[0] = sg_time[1] = 0;	//Initialize cumulative thinking time
	kou_z = 0;

	for (i=0;i<dll_tesuu;i++) {
		z   = dll_kifu[i][0];	//Coordinates, y*256 +Contains in the form of x
		col = dll_kifu[i][1];	//Stone color
		t   = dll_kifu[i][2];	//Time spent
		sg_time[i&1] += t;
		if ( move_one(z,col) != MOVE_SUCCESS ) break;
	}

#if 0	//A sample when interrupt processing is included. If 0 is changed to 1, it will be compiled.
	for (i=0;i<300;i++) {				// 300*10ms = 3000ms =Wait 3 seconds.
		PassWindowsSystem();			//Temporarily pass control to Windows.
		if ( *pThinkStop != 0 ) break;	//When the suspend button is pressed.
		Sleep(10);						// 10ms(0.01 seconds)Stop.
	}
#endif

	//When displaying final processing, figures, and numerical values
	if ( dll_endgame_type == GAME_END_STATUS  ) return endgame_status(dll_endgame_board);
	if ( dll_endgame_type == GAME_DRAW_FIGURE ) return endgame_draw_figure(dll_endgame_board);
	if ( dll_endgame_type == GAME_DRAW_NUMBER ) return endgame_draw_number(dll_endgame_board);

	//Call a sample thinking routine
	if ( dll_black_turn ) col = BLACK;
	else                  col = WHITE;

	// (2017-03-17 Add begin)
	//File export
	{
		FILE* fp;
		char* fname = "out.txt";
		char* str = "Hello World\nThe C Programming Language\nTest Test";

		fp = fopen(fname, "w");
		if (fp == NULL) {
			printf("%s file can not open.\n", fname);
			return -1;
		}

		//Output the current phase
		for (int y = 0; y<21; y++)
		{
			for (int x = 0; x<21; x++)
			{
				int i = y * 256 + x;
				char buffer[20];
				itoa(board[i], buffer, 10);
				fprintf(fp, buffer);
				fprintf(fp, ",");
			}
			fprintf(fp, "\n");
		}
		{
			char buffer[20];

			//Output swallowtail
			itoa(hama[0], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			itoa(hama[1], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			//Output cumulative thinking time
			itoa(sg_time[0], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			itoa(sg_time[1], buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			//Output Ko
			itoa(kou_z, buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			//Output the turn (stone color)
			itoa(col, buffer, 10);
			fprintf(fp, buffer);
			fprintf(fp, ",");

			fprintf(fp, "\n");
		}

		fclose(fp);
	}
	// (2017-03-17 Add end)

	// (2017-03-17 Add begin)
	//Read file
	ret_z = -1;
	{
		FILE* fp;
		char* fname = "in.txt";
		char buffer[100];

		fp = fopen(fname, "r");
		if (fp == NULL) {
			//The file could not be read
		}
		else
		{
			if (fgets(buffer, 100, fp) != NULL) {
				ret_z = atoi(buffer);
			}
			fclose(fp);

			if (remove(fname) == 0) {
				//File deletion successful
			}
			else {
				//File deletion failure
			}
		}
	}
	// (2017-03-17 Add end)

	if (-1 == ret_z)
	{
		ret_z = think_sample(col);
	}

	PRT("Thinking time: First move=%d seconds, behind=%d seconds\n",sg_time[0],sg_time[1]);
	PRT("Start=(%2d,%2d)(%04x),Trouble=%d,Turn=%d,Board size=%d,komi=%.1f\n",(ret_z&0xff),(ret_z>>8),ret_z, dll_tesuu,dll_black_turn,dll_board_size,dll_komi);
//	print_board();
	return ret_z;
}

With this, no matter which program language you use, you can play a communication match with a computer Go program via a text file.

Well, I think that's the role of GTP (Go Text Protocol), but the specifications are huge.

Compared to that, this remodeling method

out.txt

3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
0,0,0,0,0,2,

in.txt (* Do not add extra spaces or line breaks at the end)

3332

I just need to be able to read out.txt and export in.txt.

Really?

I want to try if the modified version of cgfthink.dll / cgfgoban.exe can communicate with the C # language version of the computer Go program.

For your own computer Go program, I don't have a mode for reading and writing text files. This also needs modification.

-19 Roadbed -No stones -Komi 6.5 -Japanese rules -The turn is judged by looking at the out.txt file -Move to y * 256 + x and output as in.txt file

Should it be in the form of?

Should I use the Visual Studio Installer if I want C # functionality in Visual Studio 2017?

// Overwriting

"Sleep processing" (blue studio) http://www.mm2d.net/main/prog/c/sleep-01.html

Recommended Posts

Let's modify the computer Go program CgfGoBan to support multiple program languages
How to start the program
Let's write a program to solve the 4x4x4 Rubik's Cube! 2. Algorithm
Let's write a program to solve the 4x4x4 Rubik's Cube! 3. Implementation
Let's touch on the Go language
Let's write a program to solve the Rubik's Cube (Part 2: IDA * Search)