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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Threads, Dialog based appl

Threads, Dialog based appl

Scheduled Pinned Locked Moved C / C++ / MFC
c++designhelpquestion
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.
  • K Offline
    K Offline
    KKR
    wrote on last edited by
    #1

    I have a Dialog with progress bar and status bar. System has to perform some processing on number of TXT files, those will be opened,processed and closed, by other function of another class. UI has to be updated with name of file in the status bar and also progress bar has to be pisitioned according to the number of files processed. I am using VC++, and Worker threads, updating a global structure with file name and count, But the problem is UI is not getting updated, and Its Dialog based application. Any suggesstions ?? Any tutorials are avilable on Threads, Events ...online Thanks in advance Warm Regards, KKR

    V J 2 Replies Last reply
    0
    • K KKR

      I have a Dialog with progress bar and status bar. System has to perform some processing on number of TXT files, those will be opened,processed and closed, by other function of another class. UI has to be updated with name of file in the status bar and also progress bar has to be pisitioned according to the number of files processed. I am using VC++, and Worker threads, updating a global structure with file name and count, But the problem is UI is not getting updated, and Its Dialog based application. Any suggesstions ?? Any tutorials are avilable on Threads, Events ...online Thanks in advance Warm Regards, KKR

      V Offline
      V Offline
      VIKASK_77
      wrote on last edited by
      #2

      I would like to know how do u notify your dialog with progress control to update it self. I am sure that this would have given u the solution to your problem. One way of doing this is u send message to the dialog box to update when u update the global structure.

      1 Reply Last reply
      0
      • K KKR

        I have a Dialog with progress bar and status bar. System has to perform some processing on number of TXT files, those will be opened,processed and closed, by other function of another class. UI has to be updated with name of file in the status bar and also progress bar has to be pisitioned according to the number of files processed. I am using VC++, and Worker threads, updating a global structure with file name and count, But the problem is UI is not getting updated, and Its Dialog based application. Any suggesstions ?? Any tutorials are avilable on Threads, Events ...online Thanks in advance Warm Regards, KKR

        J Offline
        J Offline
        jhwurmbach
        wrote on last edited by
        #3

        KKR wrote: Any tutorials are avilable on Threads, Events ...online http://www.flounder.com/mvp_tips.htm[^] has (among others) a very good tutuorial about threads. Hope this helps!


        Who is 'General Failure'? And why is he reading my harddisk?!?

        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