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

    Passing Dialog as parameter

    Hi there gurus,
    Can someone please help me with the following problem.
    I have created several dialogs.
    Classes : CMyDlg1, CMyDlg2, CMyDlg3.......and so on.

    In my program, I have to call a procedure which will start up one of these
    dialogs, and I do not know before hand which dialog I will draw until runtime, and depending on the data decode.
    The problem is in the procedure declaration----

    void DrawDialog(int x, char y, "DialogToBeDrawn")

    What should be the data type in "DialogToBeDrawn" ?

    I have tried CDialog but that did not work.

    Please help.
    Thanks in advance.


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Passing Dialog as parameter

    Have you used CDialog * ?


  3. #3
    Join Date
    Mar 1999
    Posts
    8

    Re: Passing Dialog as parameter

    Thanks Franky,
    I shall try as suggested by you.


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