0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DXライブラリで新規プロジェクト作成の WinMain の警告を消す

Posted at

DXライブラリで新規プロジェクト作成をしたら警告が出た。

Visual Studio 2022 Community使用

過去にはこんな事はなかったが、かなり久々なんでC++に 余計な 新機能が増えたんだろう。

image.png

元の WinMain の行を下の様に直せば消える

int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_  HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd)

image.png

できれば元の WinMain のまま警告を無くしたかったが、時間がかかりそうなので止めた

参考サイト
https://replication.hatenablog.com/entry/2019/05/05/225954#:~:text=c++.%20%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?