Archived

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

VbDestroyer

console functions in a win32 app

Recommended Posts

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