Thread: N00b question

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    2

    Question N00b question

    hellow,

    i'm a beginner in C++ but i'm a quick learner.
    i have 3 years of experience in Visual Basic and now i want to learn a more advanced programming language.

    so im starting with a simple application.

    i want to show a normal dialog with an OK and Cancel button,
    i have created a resource file and added a dialog with the name IDD_DIALOG1.

    now i would like to know;

    if i start the program how i can show the dialog

    if anyone wants to help me, im looking for a simple code snipped and very much comments (explanation)

    (sorry for my bad english)

    Greatings and Many thanks from MightyMike

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Code:
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    	LPSTR lpCmdLine, int nCmdShow)
    {
       return DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
       // This code is self explanitory, if you don't understand it, you should take a tut.
    }

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    2
    Quote Originally Posted by Cool-August
    Code:
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    	LPSTR lpCmdLine, int nCmdShow)
    {
       return DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc);
       // This code is self explanitory, if you don't understand it, you should take a tut.
    }
    thank you very much,

    and does someone here have a very good beginners tutorial?

    regards,


    mightymike

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Well, you could look a couple of threads up in this very board to the sticky thread hidden in plain view with the cryptic title of Windows programming links.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another n00b question: storing text as a variable
    By Jmcrofts in forum C++ Programming
    Replies: 1
    Last Post: 07-29-2007, 08:12 AM
  2. Very sorry, but this must be the most n00b question =]
    By Teh_n00b in forum C++ Programming
    Replies: 24
    Last Post: 01-23-2007, 07:46 PM
  3. n00b question
    By gcn_zelda in forum C++ Programming
    Replies: 4
    Last Post: 03-20-2003, 09:28 AM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM