Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Why the dialog and drawing on view is not appearing - with Release build

Why the dialog and drawing on view is not appearing - with Release build

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstestingbeta-testingperformancehelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JHAKAS
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • J JHAKAS

      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

      S Offline
      S Offline
      soggie
      wrote on last edited by
      #2

      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.

      J 1 Reply Last reply
      0
      • S soggie

        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.

        J Offline
        J Offline
        JHAKAS
        wrote on last edited by
        #3

        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

        J 1 Reply Last reply
        0
        • J JHAKAS

          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

          J Offline
          J Offline
          jmkhael
          wrote on last edited by
          #4

          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 ) ;

          S 1 Reply Last reply
          0
          • J jmkhael

            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 ) ;

            S Offline
            S Offline
            soggie
            wrote on last edited by
            #5

            or maybe your computer is just having her period. wait a week and see.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups