Thread: Dialogs in dos window?

  1. #1
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379

    Dialogs in dos window?

    I'm making an MS-DOS game, I want to use windows dialog menus to communicate with my game, but I dont want my whole game to be in a window.

    I have two questions though, can you create a dialog through an MS-dos menu that can communicate with the dos menu? And, can you make a dialog without resources? Mm, make that three questions, do I still need a message loop?

    Thank you!
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  2. #2
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    as long as you #include <windows> I'm pretty sure you can use any windows components as you wish. You just won't get the hInstance hPrevInstance that win_main would normally give you (assuming you're using plain old main)

  3. #3
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Then, how do I add one without using resources?
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  4. #4
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    If you're talking about the resource file that Visual Studio makes for you, you don't need it. That's something Visual Studio whips up to make win32 programming a bit easier. It is very possible to not use the resource file. You would have to create all the windows components yourself.

    http://www.functionx.com/win32/

    that link MIGHT help you. I just did a quick google search.

  5. #5
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    I'll check that site out, thank you!
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    203
    Are you wanting to use win32 stuff in a console app?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Window scrollbar
    By maxorator in forum Windows Programming
    Replies: 2
    Last Post: 10-07-2005, 12:31 PM
  2. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. dos to window
    By Eavan Hyde in forum Windows Programming
    Replies: 2
    Last Post: 03-18-2004, 01:24 AM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM