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. ATL / WTL / STL
  4. Calling a MFC dialog from win32

Calling a MFC dialog from win32

Scheduled Pinned Locked Moved ATL / WTL / STL
c++
6 Posts 3 Posters 20 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.
  • R Offline
    R Offline
    rdeekonda
    wrote on last edited by
    #1

    I have tried adding MFC support and calling a modal/modeless dialog from a win32 application My program is crashing when I do this.

    Deekonda Ramesh

    A L 2 Replies Last reply
    0
    • R rdeekonda

      I have tried adding MFC support and calling a modal/modeless dialog from a win32 application My program is crashing when I do this.

      Deekonda Ramesh

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      Error message? Code? The question is very less likely to be understood as it stands now.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      R 1 Reply Last reply
      0
      • R rdeekonda

        I have tried adding MFC support and calling a modal/modeless dialog from a win32 application My program is crashing when I do this.

        Deekonda Ramesh

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I strongly suspect that your entire application needs to be re-built as MFC in order to do this.

        R 1 Reply Last reply
        0
        • A Afzaal Ahmad Zeeshan

          Error message? Code? The question is very less likely to be understood as it stands now.

          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

          R Offline
          R Offline
          rdeekonda
          wrote on last edited by
          #4

          I am having an MFC Dialog class called CDataFilesDialog inheriting from CDialog I have a global object of this dialog named dlg; I am doing a dlg.DoModal() from a WMCOMMAND message handled by wndproc of my win32 application. I am trying to mix MFC and WIn32

          Deekonda Ramesh

          1 Reply Last reply
          0
          • L Lost User

            I strongly suspect that your entire application needs to be re-built as MFC in order to do this.

            R Offline
            R Offline
            rdeekonda
            wrote on last edited by
            #5

            SInce MFC is a wrapper of win32 , why can't I do this?

            Deekonda Ramesh

            L 1 Reply Last reply
            0
            • R rdeekonda

              SInce MFC is a wrapper of win32 , why can't I do this?

              Deekonda Ramesh

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Because the design of MFC means you can use ordinary Win32 calls inside an MFC application but not the other way round.

              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