Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DanG

windowless application?

This topic is 5851 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make an application that runs without being seen. How can I do this in MSVC++6? If I make a console, it automatically gives me a window. The point of this is to make a GLUT window without that anoying console window openning as well.

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by DanG
I want to make an application that runs without being seen. How can I do this in MSVC++6?

WinMain. Never bother to create a top-level window, or create one but never call ShowWindow on it.

Share this post


Link to post
Share on other sites
Thanks, but I prbably should have said I''m making a platform independent app. I''m trying to get rid of the underlying console in my GLUT apps.

Share this post


Link to post
Share on other sites
The console is a completely platform-dependent feature. Either look into an abstraction layer or give FreeConsole a try (I doubt it will work).

Share this post


Link to post
Share on other sites
Try this (If you are using MSVC, I bet you are)
Add this to the linker options:
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

(delete any other /SUBSYSTEM or /ENTRY options)

That will make your GLUT program not create a console window.

Share this post


Link to post
Share on other sites
I just accept it as part of the program. It''s also comforting
to know that my "cout" messages will always have a place to
show themselves.

*** 500 Internal Server Error ***
*** 500 Internal Server Error ***



Kami no Itte ga ore ni zettai naru!

Share this post


Link to post
Share on other sites
If you were using GLUT then it was platform independent anyway... Just changing some linker options can''t possibly impact the portability of your code, since it''s not changing any of the code.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!