Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
f74ccbda
Commit
f74ccbda
authored
Jun 23, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved instructions for avoiding the black console window when using visual studio.
parent
094c357a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
gui_api_ex.cpp
examples/gui_api_ex.cpp
+8
-18
No files found.
examples/gui_api_ex.cpp
View file @
f74ccbda
...
...
@@ -217,24 +217,14 @@ int main()
// ----------------------------------------------------------------------------
// If you use main() as your entry point when building a program on MS Windows then
// there will be a black console window associated with your application. If you
// want your application to not have this console window then you need to build
// using the WinMain() entry point as shown below and also set your compiler to
// produce a "Windows" project instead of a "Console" project. In visual studio
// this can be accomplished by going to project->properties->general configuration->
// Linker->System->SubSystem and selecting Windows instead of Console.
//
#ifdef WIN32
int
WINAPI
WinMain
(
HINSTANCE
,
HINSTANCE
,
PSTR
cmds
,
int
)
{
return
main
();
}
// Normally, if you built this application on MS Windows in Visual Studio you
// would see a black console window pop up when you ran it. The following
// #pragma directives tell Visual Studio to not include a console window along
// with your application. However, if you prefer to have the console pop up as
// well then simply remove these #pragma statements.
#ifdef _MSC_VER
# pragma comment( linker, "/entry:mainCRTStartup" )
# pragma comment( linker, "/SUBSYSTEM:WINDOWS" )
#endif
// ----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment