Click here to Skip to main content
15,891,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Drawimage Pin
Chris Meech9-May-12 2:49
Chris Meech9-May-12 2:49 
GeneralRe: Drawimage Pin
john56329-May-12 2:54
john56329-May-12 2:54 
GeneralRe: Drawimage Pin
Anu_Bala9-May-12 18:09
Anu_Bala9-May-12 18:09 
GeneralRe: Drawimage Pin
john56329-May-12 20:15
john56329-May-12 20:15 
AnswerRe: Drawimage Pin
wangafei9-May-12 21:03
wangafei9-May-12 21:03 
QuestionSplit window in MDI Pin
Anu_Bala8-May-12 19:21
Anu_Bala8-May-12 19:21 
AnswerRe: Split window in MDI Pin
Jochen Arndt8-May-12 21:04
professionalJochen Arndt8-May-12 21:04 
AnswerOdd MFC Dialog Executable Behavior Pin
wmallory8-May-12 8:20
wmallory8-May-12 8:20 
I have a bit of strange behavior with a MFC application that I haven't seen before.

The application is a simple MFC Dialog running unders Windows XP SP3 and using Visual Studio 2008. It builds fine under Debug and Release configurations. The Debug executable runs fine under the debugger and also within Visual Studio using the Start Without Debugging button. The Release executable runs fine directly from Windows.

However, the Debug executable does NOT run fine directly from Windows. When double clicked from Windows Explorer, there is a brief hourglass and then what appears to be a quick exit. No messages, no nothing. Adding a few AfxMessageBox calls to the app's CWinAppEx class, it appears that not only does the app's InitInstance method not get called, but even the CWinAppEx constructor does not get called. Obviously, this makes debugging the problem somewhat difficult.

Anyone seen similar behavior before? Seems like it might be a manifest problem of some sort, but I don't see why it would only affect the Debug executable and only directly from Windows.

Additional Info: With a little more testing, I found that this behavior occurs even in a simple test application as soon as I add any code that requires an internally developed DLL. Note that if I rename this DLL, I get the usual can't find the DLL message. So the app is finding the DLL, but for some reason, in Debug configuration, there's a problem only when running directly from Windows.

modified 8-May-12 14:47pm.

QuestionRe: Odd MFC Dialog Executable Behavior Pin
David Crow8-May-12 9:26
David Crow8-May-12 9:26 
GeneralRe: Odd MFC Dialog Executable Behavior Pin
Code-o-mat8-May-12 10:32
Code-o-mat8-May-12 10:32 
QuestionDiff of image Pin
john56328-May-12 1:06
john56328-May-12 1:06 
GeneralRe: Diff of image Pin
David Crow8-May-12 2:49
David Crow8-May-12 2:49 
QuestionSwitch To Another Doc Template Pin
002comp8-May-12 0:01
002comp8-May-12 0:01 
QuestionNeed help with my jump physics code Pin
Seeker20027-May-12 19:46
Seeker20027-May-12 19:46 
AnswerRe: Need help with my jump physics code Pin
Chuck O'Toole7-May-12 19:55
Chuck O'Toole7-May-12 19:55 
GeneralRe: Need help with my jump physics code Pin
Seeker20027-May-12 21:43
Seeker20027-May-12 21:43 
AnswerRe: Need help with my jump physics code Pin
CPallini8-May-12 0:03
mveCPallini8-May-12 0:03 
GeneralRe: Need help with my jump physics code Pin
Chuck O'Toole8-May-12 3:50
Chuck O'Toole8-May-12 3:50 
GeneralRe: Need help with my jump physics code Pin
CPallini8-May-12 3:52
mveCPallini8-May-12 3:52 
GeneralRe: Need help with my jump physics code Pin
Seeker20029-May-12 21:42
Seeker20029-May-12 21:42 
GeneralRe: Need help with my jump physics code Pin
CPallini9-May-12 21:55
mveCPallini9-May-12 21:55 
Questionallocating object in global storage Pin
ForNow7-May-12 15:21
ForNow7-May-12 15:21 
AnswerRe: allocating object in global storage Pin
Richard MacCutchan7-May-12 21:50
mveRichard MacCutchan7-May-12 21:50 
AnswerRe: allocating object in global storage Pin
ThatsAlok9-May-12 21:17
ThatsAlok9-May-12 21:17 
AnswerRe: allocating object in global storage Pin
Erudite_Eric9-May-12 21:27
Erudite_Eric9-May-12 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.