CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    0

    how can I open a second window?

    so here's what i want to do. I have a window using winapi showing up and I want a basic command prompt window to also show up that i can write too. it's for a game and the command prompt window is where debug text will be displayed. is there a way to do that? and if so how would i print to that window? could i some how open up a new command prompt window, get the handle of it, and set cout to print to that some how? thanks in advanced.

  2. #2
    Join Date
    Dec 2010
    Posts
    14

    Re: how can I open a second window?

    I think the AllocConsole function is what you want:

    http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: how can I open a second window?

    The sample goes.
    Attached Files Attached Files
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured