|
-
Nov 5th, 2004, 12:45 PM
#1
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|