Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple dialog problem Visual C++ - urgent

Status
Not open for further replies.

mcowen

Programmer
Oct 21, 2001
134
GB
Hi all,

I have tried to create a multiple dialog app in Visual C++ but it gives me an assertion failure when I try to run it. Its just a simple program that sends whats entered in the dialog back to its parent. It works when its just one edit box but I am now trying with a ListBox populating the parents ComboBox (CArray is involved). I need example code rather urgently so that I can compare and find out what I am doing wrong.
Please could someone either post some as a reponse or point me to an online resource.

Thanks
Rgds
Matt
 
What you may do is try to populate yet to be created controls. Be sure that you override the InitDialog method of CDialog to populate your controls.

As a shorthand, Use ClassView "Member Variables" tab to add the combo-boxes and ListBoxes as members to your class. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top