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. MFC Dialog with Progressbar cannot be launch in Window 7

MFC Dialog with Progressbar cannot be launch in Window 7

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++question
6 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.
  • A Offline
    A Offline
    Andraw111
    wrote on last edited by
    #1

    Hi, dear all, I have a MFC application created in C++ 6.0, it works fine in Window XP. When run this application in Window 7, if the dialog has progressbar on it, this dialog cannot be launched, but if you remove this progressbar or for dialog without progressbar, everything is fine. But no all Window 7 computers have this error, only very few computer have this problem. Is there anybody having this issue? or any idea? Thanks!

    A 1 Reply Last reply
    0
    • A Andraw111

      Hi, dear all, I have a MFC application created in C++ 6.0, it works fine in Window XP. When run this application in Window 7, if the dialog has progressbar on it, this dialog cannot be launched, but if you remove this progressbar or for dialog without progressbar, everything is fine. But no all Window 7 computers have this error, only very few computer have this problem. Is there anybody having this issue? or any idea? Thanks!

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      I've used progress bars on Win7 with no issue. What do you mean it didn't launch? Was there an error? If so, what was the error?

      A 1 Reply Last reply
      0
      • A Albert Holguin

        I've used progress bars on Win7 with no issue. What do you mean it didn't launch? Was there an error? If so, what was the error?

        A Offline
        A Offline
        Andraw111
        wrote on last edited by
        #3

        Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.

        C A 2 Replies Last reply
        0
        • A Andraw111

          Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.

          C Offline
          C Offline
          Chuck OToole
          wrote on last edited by
          #4

          If the same .exe file runs on some W7 machines and not others, then the problem is clearly something environmental on the machines that fail. Check for missing DLLs on the failing machines. Or build your application with MFC and C RTL as static libraries and try it that way.

          A 1 Reply Last reply
          0
          • A Andraw111

            Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.

            A Offline
            A Offline
            Albert Holguin
            wrote on last edited by
            #5

            The OnInitDialog() occurs after the creation of a window, so there's the possibility that the creation is failing and you're not checking that. Check the return of DoModal() and GetLastError() for errors.

            1 Reply Last reply
            0
            • C Chuck OToole

              If the same .exe file runs on some W7 machines and not others, then the problem is clearly something environmental on the machines that fail. Check for missing DLLs on the failing machines. Or build your application with MFC and C RTL as static libraries and try it that way.

              A Offline
              A Offline
              Andraw111
              wrote on last edited by
              #6

              Thanks for you suggestion. Yes, you are right, it's because some files are not correctly registered.

              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