I have a program that spawns a dialog with DoModal. The new dialog class has a variable declared in my main dialog, as it should. How do I pass a variable from my spawned dialog to my main dialog. It is an int array. I tried passing the whole array to another array from my main dialog program, but it didnt work right. Should I use a pointer? Also, should I pass the info in the array from inside the code of my spawned dialog back to the main dialog (maybe a public variable can be used to store it?), or is it better to just get it straight from my main dialog and ask that it be returned? Geez what a headache.
Thanks.