Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
DoModal Works On Windows XP But Not Working On Windows 7.0.
Dialog Does not open at all in Windows 7.0
What Could Be the reason. Please let me know,its urgent

C++
CCaxu1 Dcaxu1;
    Dcaxu1.DoModal();
Posted
Comments
pasztorpisti 3-Oct-12 4:55am    
Probably some bug in your code somewhere because MFC is quite a "cross-windows" library. The bug is definitely not in the code you shared.
Chuck O'Toole 3-Oct-12 8:50am    
Your problem statment is unclear. Did you build/run it on Windows XP *AND* on Windows 7.0 or did you simply build it on Windows XP and move the binary to Windows 7 and then it doesn't work? If it's the latter, chances are you have some libraries missing from the Windows 7 machine. For example, are your building / moving the DEBUG build or the RELEASE build?
adityarao31 3-Oct-12 9:50am    
On xp dialog is opening properly and everything is fine on windows 7.0 i am running release build in which dialog is not opening
Chuck O'Toole 3-Oct-12 15:46pm    
First, when replying to someone, use the "Repky" button on the right side of their message. Since you didn't do that, I didn't get an e-mail saying you replied and you might have waited forever for a reply.

Secondly, did you also run the release build on the XP machine? Where is your development done, XP or Win 7 or BOTH? You need to provide precise answers otherwise we do not know what environments are working / failing.
adityarao31 3-Oct-12 21:36pm    
Yah i also run on xp ss release build.my developement is done on xp machine. But i am on release 7 of my project. Earlier 6 releases never got such problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900