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. XP Worker Thread File IO Issue

XP Worker Thread File IO Issue

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

    I have a MSVC++ 6.0 program that creates a worker thread and then performs file I/O using CStdioFile class. It works fine in Windows 98 but when I try to run the same program on windows XP, it fails to be able to open the files. I looked at permissions and logged in as the sys admin but it still fails to open the files. Any ideas? Chipg

    A V 2 Replies Last reply
    0
    • C chipg_al

      I have a MSVC++ 6.0 program that creates a worker thread and then performs file I/O using CStdioFile class. It works fine in Windows 98 but when I try to run the same program on windows XP, it fails to be able to open the files. I looked at permissions and logged in as the sys admin but it still fails to open the files. Any ideas? Chipg

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      ::GetLastError == ????? in debug @err, hr = ?????

      C 1 Reply Last reply
      0
      • A AlexO

        ::GetLastError == ????? in debug @err, hr = ?????

        C Offline
        C Offline
        chipg_al
        wrote on last edited by
        #3

        The error was 32 but nobody else has this file open as far as I know. The filename was obtained using the CFileDialog class in the User interface thread but as far as I can tell this dialog does not actually open the file. It just returns the path and filename for you to open later which I am trying to do in the worker thread.

        1 Reply Last reply
        0
        • C chipg_al

          I have a MSVC++ 6.0 program that creates a worker thread and then performs file I/O using CStdioFile class. It works fine in Windows 98 but when I try to run the same program on windows XP, it fails to be able to open the files. I looked at permissions and logged in as the sys admin but it still fails to open the files. Any ideas? Chipg

          V Offline
          V Offline
          valikac
          wrote on last edited by
          #4

          Post the code that opens the file via CStdioFile. Kuphryn

          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