Click to See Complete Forum and Search --> : Passing Dialog as parameter


KM
May 21st, 1999, 08:46 AM
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.

Franky Braem
May 21st, 1999, 08:52 AM
Have you used CDialog * ?

KM
May 21st, 1999, 09:18 AM
Thanks Franky,
I shall try as suggested by you.