Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
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
 
 CCaxu1 Dcaxu1;
     Dcaxu1.DoModal();
Posted 2-Oct-12 22:37pm
Comments
pasztorpisti at 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 at 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 at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,382


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100