Tika
24-Sep-2004, 02:43 PM
Hey Mappers. I posted this question on Easy-Tek but havent gotten a response yet. Was kinda hoping that maybe there are a c++er or two on here that has not yet gotten a chance to join Easy-Tek that might be able to help me. We havent been able to figure this one out yet...
Ok. Heres the deal. I have a main form/view thingy. From that a button click opens a new dialog. I have no trouble with that. But we tried to delete the form, and release the memory in the PostNCDestroy function, and we couldnt use the dialog again. So we pretty much switched to destroying it when we close the program. But it would be nice if we could open and close something then be able to actually open it again. Any ideas? I use VC++ 6 with MFC.
Ok. Heres the deal. I have a main form/view thingy. From that a button click opens a new dialog. I have no trouble with that. But we tried to delete the form, and release the memory in the PostNCDestroy function, and we couldnt use the dialog again. So we pretty much switched to destroying it when we close the program. But it would be nice if we could open and close something then be able to actually open it again. Any ideas? I use VC++ 6 with MFC.