Tuesday, July 17, 2012 2:03 PM
When DoModal is called, I could see the dialog popping up but none of the controls are loading. A blank (white) dialog comes up as if it tries to populate.. but that doesnt happen even if left for days.
When i debugged i got to know that the execution stops responding after SetWindowPlacement is called. Gone through few articles, they say that if the length is not correct then SetWindowPlacement would fail, I checked this as well, length is 44.
I have spent quite a lot of time in debugging this but as of now no hint.. any sugesstion would be of great help!!!!
One more point to add here... This happens after migration from VS 2005 to VS 2010..
- Edited by Mekala D Wednesday, July 18, 2012 6:47 AM
Thursday, July 19, 2012 8:38 AMModerator
Hi Mekala D,
I think you misunderstand with “length”.
It is not the length of any window border, but the length in bytes of “WINDOWPLACEMENT” structure.
Lpwndpl.length = sizeof (WINDOWPLACEMENT);
Besides, there might be other reason to your issue. You can try to use GetLastError() to get the error code, it may help you troubleshoot.
Damon Zheng [MSFT]
MSDN Community Support | Feedback to us
Thursday, August 30, 2012 1:23 PMActually, I am migrating my application from VS 2003 to VS 2010. In VS 2003 there is a user defined class called CDilaogEx and in VS 2010 there is a new MFC called CDialogEx.
There is a confusion because of same name.
After changing the user-defined class name and all its references to the new name I am able to resolve this issue. Thanks Damon Zheng for ur suggestion.