Why the dialog and drawing on view is not appearing - with Release build
-
Hello friends I am working with a SDI application in which i am drawing on the view. Steps followed are: CreateCompatible DC and Bitmap draw in memory dc stretch over the view CDC which is Meomory dc is the global. But on one of my testing computer XP without Studio installed, 1.0 It seems some of the things are not drawing, it just displays the blank screen. 2.0 Dialog boxes are not appearing. WHAT CAN BE THE REASON for this? I am trying this one with Release Mode build Any suggestion, idea, help Leave your mark wherever you go
-
Hello friends I am working with a SDI application in which i am drawing on the view. Steps followed are: CreateCompatible DC and Bitmap draw in memory dc stretch over the view CDC which is Meomory dc is the global. But on one of my testing computer XP without Studio installed, 1.0 It seems some of the things are not drawing, it just displays the blank screen. 2.0 Dialog boxes are not appearing. WHAT CAN BE THE REASON for this? I am trying this one with Release Mode build Any suggestion, idea, help Leave your mark wherever you go
ok say if you have a function: BOOL CreateDialog(); that returns false if it fails. in your code, you do BOOL Create() { ASSERT(CreateDialog()); ... return TRUE; } since ASSERT doesn't do anything in release build (compiler ignores it), CreateDialog() doesn't get called. Maybe that's one reason y some of your system is failing... Hope i helped... or, check your project settings. might discover something there.
-
ok say if you have a function: BOOL CreateDialog(); that returns false if it fails. in your code, you do BOOL Create() { ASSERT(CreateDialog()); ... return TRUE; } since ASSERT doesn't do anything in release build (compiler ignores it), CreateDialog() doesn't get called. Maybe that's one reason y some of your system is failing... Hope i helped... or, check your project settings. might discover something there.
Thanks for your prompt reply Well problem here is something else. in my view i am initialising the objevt of the dialog box, assigning its variables and then calling DoModal() Next complete setup seems to work fine here in the Windows XP and 98 etc, with Visual Studion Installed. On the system where the XP without Visual Studio problems appears i.e Dialog box doesnot appears Things does not get drawn on the View, etc What can be the difference between systems with & without studio installed. What actually is required to display the dialog box when we are doing do modal? Thanks again Leave your mark wherever you go
-
Thanks for your prompt reply Well problem here is something else. in my view i am initialising the objevt of the dialog box, assigning its variables and then calling DoModal() Next complete setup seems to work fine here in the Windows XP and 98 etc, with Visual Studion Installed. On the system where the XP without Visual Studio problems appears i.e Dialog box doesnot appears Things does not get drawn on the View, etc What can be the difference between systems with & without studio installed. What actually is required to display the dialog box when we are doing do modal? Thanks again Leave your mark wherever you go
-
Maybe the MFC dlls? Check the dependecies of the exe with dependency walker and try copy those dlls with your exe or try to statically link the exe Papa while (TRUE) Papa.WillLove ( Bebe ) ;