Jump to content
  • Advertisement

Archived

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

VbDestroyer

console functions in a win32 app

This topic is 5491 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

hello, I was wondering, do all the simple functions you can use in a console app, like std::cout<<"Blah"<[edited by - vbdestroyer on October 6, 2003 6:31:01 PM]

Share this post


Link to post
Share on other sites
Advertisement
you could just use windows GDI; if you are not looking for lots of animation and such it is overkill to use OGL or DX (unless you already know them).

Share this post


Link to post
Share on other sites
Ask yourself this: where would console text be outputted if there were no console?

The closes alternative you can use is DrawText (I think? If that''s not it, it''s close, my memory is slightly rusty there) with 0 as a DC. It''ll output text directly to the screen (as 0 is the DC for the screen itself, sans-window ).

So long as they don''t rely on the console, stuff you did in console apps will run just as well in Windows (that is, string manipulation, for instance). Things such as System() and cout rely on the console to output text, whereas Windows relies on device contexts (DCs).

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!