Warning C28251 Inconsistent annotation for 'exit': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.18362.0\ucrt\stdlib.h(52). GLUT_test01 C:\OPENGL1\include\glut.h 146
- Cannot compile Win32 application in Visual Studio
- Building OpenGL/GLUT Programs
A Question:It's my first time playing around with the Win32 API. What I'm trying to do is to make a simple window. I'm writing the code in Visual Studio 2019 on Windows 10 with all the required things installed to work with C++. The problem I'm having is that none of the code I found from searching around the web has worked, even just the simple wWinMain. Is there something I am doing completely wrong? or is there something special with VS2019 or Windows 10 in general?
I tried running the code from a bunch of different sources. Also tried manually running the code with the cl compiler from the terminal.
Code:
A Solution:Change your application from "Console" to "Windows" Right click on project -> Properties -> Linker options -> System.
To prevent your program from opening a console window, while still on the "Property Pages", select "Configuration Properties→Linker→Command Line" on the left pane. Under "Additional options" at the bottom of the right pane enter:
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
This is a paragraph.
No comments:
Post a Comment