Results 1 to 6 of 6

Thread: Set a stream to global memory

Threaded View

  1. #1

    Thread Starter
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037

    Set a stream to global memory

    What is the best was to set a stream to global memory but have the flexibility to use the same kind of stream to read from a file?

    I tried this:

    filebuf fb;
    fb.setbuf((char*)pBuffer, ::GlobalSize(hGlbl));
    istream* s(fb);
    this->FromStream(s);

    But I cannot access setbuf. And I don't want to use IStream. I cannot compile it and I didn't see any MS reference to the lib it is defined in.
    Last edited by aewarnick; Nov 5th, 2004 at 12:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width