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. Empty Doc

Empty Doc

Scheduled Pinned Locked Moved C / C++ / MFC
help
7 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.
  • V Offline
    V Offline
    vivekphlp
    wrote on last edited by
    #1

    When I tried to run my Dialog based application .. i Got the error message - Failed to create empty Document... Why is it so

    Proud To Be an Indian

    H 1 Reply Last reply
    0
    • V vivekphlp

      When I tried to run my Dialog based application .. i Got the error message - Failed to create empty Document... Why is it so

      Proud To Be an Indian

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      vivekphlp wrote:

      When I tried to run my Dialog based application

      Are you sure that it's dialog based? That message usually only is seen for SDI or MDI apps.

      Best wishes, Hans


      [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

      V 1 Reply Last reply
      0
      • H Hans Dietrich

        vivekphlp wrote:

        When I tried to run my Dialog based application

        Are you sure that it's dialog based? That message usually only is seen for SDI or MDI apps.

        Best wishes, Hans


        [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

        V Offline
        V Offline
        vivekphlp
        wrote on last edited by
        #3

        oops sorry its an SDI appln only...

        Proud To Be an Indian

        R 1 Reply Last reply
        0
        • V vivekphlp

          oops sorry its an SDI appln only...

          Proud To Be an Indian

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

          Hi, I think some where near your View creation fails. Check for OnCreate,... return -1; This happens when the document is created with no views. Best Regards Raj

          V 1 Reply Last reply
          0
          • R Rajkumar R

            Hi, I think some where near your View creation fails. Check for OnCreate,... return -1; This happens when the document is created with no views. Best Regards Raj

            V Offline
            V Offline
            vivekphlp
            wrote on last edited by
            #5

            yes -1 is returned . but i dont understand that how no view is created...

            Proud To Be an Indian

            R 1 Reply Last reply
            0
            • V vivekphlp

              yes -1 is returned . but i dont understand that how no view is created...

              Proud To Be an Indian

              R Offline
              R Offline
              Rajkumar R
              wrote on last edited by
              #6

              Hi, What I meant is check whether the code hits on "return -1;" like statement upon execution. ie; Your View creation may not be successfull, You may debug/review the code, this is only a hint. May be, you have overrided your frame window OnCreateClient and its baseclass is not called, causing it to create no view. Best Regards, Raj

              V 1 Reply Last reply
              0
              • R Rajkumar R

                Hi, What I meant is check whether the code hits on "return -1;" like statement upon execution. ie; Your View creation may not be successfull, You may debug/review the code, this is only a hint. May be, you have overrided your frame window OnCreateClient and its baseclass is not called, causing it to create no view. Best Regards, Raj

                V Offline
                V Offline
                vivekphlp
                wrote on last edited by
                #7

                Thanks for the help . . . Actually a toolbar resource was removed, but still the code for creating the toolbar was there... which lead to the same error

                Proud To Be an Indian

                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