Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

I want to use IStream::Write method whose syntax is
C++
HRESULT Write( 
  void const* pv, 
  ULONG cb,
  ULONG* pcbWritten 
);

Let I have any file( .doc,.mp3,.txt,.pdf etc). So i want to read my file(.mp3,.doc etc) and write it in Stream created using IStream->CreateStream().
Can Anybody help me out in using IStream::Write()?

Thanks in advance....
Posted
Updated 16-Mar-11 11:23am
v2
Comments
Henry Minute 16-Mar-11 17:32pm    
You have asked the same question twice within five minutes. Please delete the one you don't want.

For future reference, if you want to change a question, click on the green 'Improve question' widget (Below and right of the text).

I don't do much C++ but isn't IStream an input stream. It doesn't make much sense to me that it would have a Write() method.

1 solution

I think, I've already answered the similar question below.
copying file to Stream[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900