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. Multithreading & Doc_View

Multithreading & Doc_View

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 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.
  • J Offline
    J Offline
    jas
    wrote on last edited by
    #1

    Hi, I'm writing a MDI application and I want to put each pair of Doc-View rinning in a separate thread. Does anyone know how to do this? Thanks in advance!

    L P 2 Replies Last reply
    0
    • J jas

      Hi, I'm writing a MDI application and I want to put each pair of Doc-View rinning in a separate thread. Does anyone know how to do this? Thanks in advance!

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

      AFAIK, it's not safe or desirable to put user interface elements in separate threads with MFC. Use threading to do the jobs that will take a long time to do in the user interface (and which usually lock it up), for example: Loading a large file, or performing a calculation on a large set of data can be usefully done in a separate thread. ================== The original message was: Hi,
      I'm writing a MDI application and I want to put each pair of Doc-View rinning in a separate thread.
      Does anyone know how to do this?
      Thanks in advance!

      1 Reply Last reply
      0
      • J jas

        Hi, I'm writing a MDI application and I want to put each pair of Doc-View rinning in a separate thread. Does anyone know how to do this? Thanks in advance!

        P Offline
        P Offline
        Paul Selormey
        wrote on last edited by
        #3

        Hello, Check the MS Advanced MFC sample -- MTMDI. It does exactly what you want. When I studied this the first reaction was why will someone do anything like this, since the sample will still run correctly without the threaded support. Now, I realize such a need do exist!!! Regards, Paul.

        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