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. Child dialog dependant on SP2 :(

Child dialog dependant on SP2 :(

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsgame-devhelpquestion
7 Posts 4 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
    aquawicket
    wrote on last edited by
    #1

    I have a many child dialog at are created within the parent. dlg = new childDlg; dlg->Create(childDlg::IDD, this); Works great.. but something it dependant on SP2. Without it, the window will not show up. People who use my program use it for Audio/Midi processing and don't like SP2 installed on their Digital Audio Workstation. So I would like to fix this so the applications does not require SP2. Any Ideas? VC2005 MFC DirectX 8.0 SDK

    L M 2 Replies Last reply
    0
    • A aquawicket

      I have a many child dialog at are created within the parent. dlg = new childDlg; dlg->Create(childDlg::IDD, this); Works great.. but something it dependant on SP2. Without it, the window will not show up. People who use my program use it for Audio/Midi processing and don't like SP2 installed on their Digital Audio Workstation. So I would like to fix this so the applications does not require SP2. Any Ideas? VC2005 MFC DirectX 8.0 SDK

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      aquawicket wrote:

      Any Ideas?

      Remove the dependency on SP2

      1 Reply Last reply
      0
      • A aquawicket

        I have a many child dialog at are created within the parent. dlg = new childDlg; dlg->Create(childDlg::IDD, this); Works great.. but something it dependant on SP2. Without it, the window will not show up. People who use my program use it for Audio/Midi processing and don't like SP2 installed on their Digital Audio Workstation. So I would like to fix this so the applications does not require SP2. Any Ideas? VC2005 MFC DirectX 8.0 SDK

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        :confused: SP2 for what?  Dialog windows have been created the same way for many years. Maybe you're leaving out some information that would make it remotely possible for us to help? Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        A 1 Reply Last reply
        0
        • M Mark Salsbery

          :confused: SP2 for what?  Dialog windows have been created the same way for many years. Maybe you're leaving out some information that would make it remotely possible for us to help? Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          A Offline
          A Offline
          aquawicket
          wrote on last edited by
          #4

          Well, I'm not exactly sure why the dialogs don't open without SP2. I don't really know where to begin on finding out either. I figure if it's not the dialog itself, then it is something within the dialog. Is their a way I can hunt down what is causing the need for SP2? Could it be the version of MFC i'm linking against? What kinda information can I provide to help out? Program specs: -------------- MFC statically linked Unicode Not Using ATL No Common Language Runtime support No Whole Program Optimization and Optimization disabled PreProcessor Def's WIN32;_WINDOWS;NDEBUG Link Library Dependencies = YES I guess I will just start stripping down the class the dialog is in till it works :P

          M 1 Reply Last reply
          0
          • A aquawicket

            Well, I'm not exactly sure why the dialogs don't open without SP2. I don't really know where to begin on finding out either. I figure if it's not the dialog itself, then it is something within the dialog. Is their a way I can hunt down what is causing the need for SP2? Could it be the version of MFC i'm linking against? What kinda information can I provide to help out? Program specs: -------------- MFC statically linked Unicode Not Using ATL No Common Language Runtime support No Whole Program Optimization and Optimization disabled PreProcessor Def's WIN32;_WINDOWS;NDEBUG Link Library Dependencies = YES I guess I will just start stripping down the class the dialog is in till it works :P

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            I still have no idea what SP2 is.  I have an idea but I'd be assuming. :) Regardless, why not step into CDialog::Create()....does the actual dialog creation fail at a Win32 API call?  Does MFC assert or fail? If creation succeeds, try breaking at PreCreateWindow(), WM_INITDIALOG, WM_SIZE, WM_PAINT.  Does execution ever get to any of these?  If so, do any of them return an invalid value? Add a PreTranslateMessage() override to the class....do you ever get any messages? etc...

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            A 1 Reply Last reply
            0
            • M Mark Salsbery

              I still have no idea what SP2 is.  I have an idea but I'd be assuming. :) Regardless, why not step into CDialog::Create()....does the actual dialog creation fail at a Win32 API call?  Does MFC assert or fail? If creation succeeds, try breaking at PreCreateWindow(), WM_INITDIALOG, WM_SIZE, WM_PAINT.  Does execution ever get to any of these?  If so, do any of them return an invalid value? Add a PreTranslateMessage() override to the class....do you ever get any messages? etc...

              Mark Salsbery Microsoft MVP - Visual C++ :java:

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

              Thanks Mark.. I'm working on getting VS2005 installed and running on an SP1 machine and I guess I'll work it from there :)

              I 1 Reply Last reply
              0
              • A aquawicket

                Thanks Mark.. I'm working on getting VS2005 installed and running on an SP1 machine and I guess I'll work it from there :)

                I Offline
                I Offline
                Iain Clarke Warrior Programmer
                wrote on last edited by
                #7

                You;'ve been asked several times... SP2 of WHAT? XP? VSxxxx? The kettle next to your PC? The other trick you can try is to go to the dialogs template, and check the NOFAILCREATE style - then you can find out which control is having trouble. As has been said, dialog creation is not much changed for a decade. Iain.

                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