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. How to check if a valid document file is loaded in mfc

How to check if a valid document file is loaded in mfc

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
2 Posts 2 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.
  • T Offline
    T Offline
    TariqZ
    wrote on last edited by
    #1

    How to check if a valid document file is loaded in SDI application? Actually I want to do some actions only after a file is opened. and also want to enable/disable filemenu save, save as submenus and save tool bar button. Any suggestion? Thanks

    N 1 Reply Last reply
    0
    • T TariqZ

      How to check if a valid document file is loaded in SDI application? Actually I want to do some actions only after a file is opened. and also want to enable/disable filemenu save, save as submenus and save tool bar button. Any suggestion? Thanks

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Hi, loaded with Serialize () or loaded with CFile open and read? And what do you mean with "valid"? If your program has an extension, it would load only files with this extension, and the serialize () already has some checking functions that says "this file is not valid" or "error by loading" Please explain yourself a bit more

      Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

      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