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. Embarassing IStream question

Embarassing IStream question

Scheduled Pinned Locked Moved C / C++ / MFC
question
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
    Joel Holdsworth
    wrote on last edited by
    #1

    Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth

    Y M 2 Replies Last reply
    0
    • J Joel Holdsworth

      Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth

      Y Offline
      Y Offline
      YoSilver
      wrote on last edited by
      #2

      If using MFC - you can try CArchiveStream declared in afxpriv2.h (create CFile, create CArchive on it and then CArchiveStream). But the implementation is not full. One of the major methods, Stat, is not implemented. Otherwise, AFAIK, you have to implement it manually... BTW, the question is very interesting. If anyone knows whether a system contains a ready-to-use function that returns IStream* on a file path, please tell! One always gets the deserved.

      1 Reply Last reply
      0
      • J Joel Holdsworth

        Hi, This question is going to make me sound really dumb, but here goes: What is the easiest way to create and IStream from on a file with a given path? Joel Holdsworth

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Check out SHCreateStreamOnFile() --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ Magnae clunes mihi placent, nec possum de hac re mentiri.

        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