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. IStream from a file

IStream from a file

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • M Offline
    M Offline
    Mathias S
    wrote on last edited by
    #1

    I need to get a IStream interface from a file. Is it possible? I got a function ParseData( IStream* pStream ). But data is huge and is located in a file. So if I could open a file and get a IStream from it somehow it would be great. But how do it do that ? I think I need a CFile like class that also have the IStream interface to it or something. Anyone got something like that ? /Mathias S.

    J 1 Reply Last reply
    0
    • M Mathias S

      I need to get a IStream interface from a file. Is it possible? I got a function ParseData( IStream* pStream ). But data is huge and is located in a file. So if I could open a file and get a IStream from it somehow it would be great. But how do it do that ? I think I need a CFile like class that also have the IStream interface to it or something. Anyone got something like that ? /Mathias S.

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      Something like ::OpenStreamOnFile(...)?    Peace! -=- James


      If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      DeleteFXPFiles & CheckFavorites (Please rate this post!)

      M 1 Reply Last reply
      0
      • J James R Twine

        Something like ::OpenStreamOnFile(...)?    Peace! -=- James


        If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        DeleteFXPFiles & CheckFavorites (Please rate this post!)

        M Offline
        M Offline
        Mathias S
        wrote on last edited by
        #3

        How could I have missed that? I been searching like crazy. And after search for the one you gave me I also found SHCreateStreamOnFile that is even better. Thanks ! /Mathias S.

        J 1 Reply Last reply
        0
        • M Mathias S

          How could I have missed that? I been searching like crazy. And after search for the one you gave me I also found SHCreateStreamOnFile that is even better. Thanks ! /Mathias S.

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          Just be sure to pay attention to the minimum shell version required for SHCreateStreamOnFile...!    Peace! -=- James


          If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          DeleteFXPFiles & CheckFavorites (Please rate this post!)

          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