Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get handle/intptr from memorystream or similar?

Status
Not open for further replies.

haddaway

Programmer
Jul 6, 2005
172
SE
I am using an old windows api which requires a handle when writing output from it. Normally I would use a filestream and it's handle but now I don't want to save a file, I just want to retrieve the content in a string. That why I thought I could use the memorystream - but it has no handle?

How does it work, can I get a handle from a memorystream or do you have any other suggestion of how to get a filestream saving to memory instead of a file?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top