Results 1 to 2 of 2

Thread: Showing dialog in MFC

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242
    Hello!

    It's me again! Who else could be than me...

    And I have another question.
    As I told you in previous post I'm developing a MFC app.
    The problem I have now is that I don't know how to show dialog I created in my resources. I've tried a few shots, but I allways got an error. I wrote CCDAboutDlg:oModal(); and I got an error. Compiler "told" me that CCDAboutDlg is NOT class. How can't it be?
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]
    Using VS6 Professional with SP3
    Programming mostly in VB and I've started to learn VC++ & MFC

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You have to create an instance of your class:
    Code:
    CCDAboutDlg aboutDlg;
    aboutDlg.DoModal();
    IM me if any other problems.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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