Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmemorystream Pin
Paulraj G26-Feb-08 0:40
Paulraj G26-Feb-08 0:40 
GeneralRe: memorystream Pin
Iain Clarke, Warrior Programmer26-Feb-08 0:54
Iain Clarke, Warrior Programmer26-Feb-08 0:54 
GeneralRe: memorystream Pin
Paulraj G26-Feb-08 1:20
Paulraj G26-Feb-08 1:20 
GeneralRe: memorystream Pin
Iain Clarke, Warrior Programmer26-Feb-08 1:38
Iain Clarke, Warrior Programmer26-Feb-08 1:38 
GeneralRe: memorystream Pin
Rajkumar R26-Feb-08 1:41
Rajkumar R26-Feb-08 1:41 
GeneralRe: memorystream Pin
Paulraj G26-Feb-08 1:56
Paulraj G26-Feb-08 1:56 
GeneralRe: memorystream Pin
Rajkumar R26-Feb-08 2:05
Rajkumar R26-Feb-08 2:05 
GeneralRe: memorystream Pin
Mark Salsbery26-Feb-08 5:48
Mark Salsbery26-Feb-08 5:48 
In addition to the other replies...

CMemFile is a memory stream.  You can use it without using CArchive.

Just create A CMemFile object, open the image file (binary mode), read chunks of bytes from
the image file and write them to the CMemFile.  When you're done you can detach the
BYTE array from the CMemfile if you need to.

CMemFile is declared through afx.h, which you should have included already.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionRe: memorystream Pin
David Crow26-Feb-08 3:19
David Crow26-Feb-08 3:19 
GeneralRe: memorystream Pin
CPallini26-Feb-08 4:28
mveCPallini26-Feb-08 4:28 
Generalregarding project!! Pin
rowdy_vc++26-Feb-08 0:37
rowdy_vc++26-Feb-08 0:37 
GeneralRe: regarding project!! Pin
Rajesh R Subramanian26-Feb-08 0:45
professionalRajesh R Subramanian26-Feb-08 0:45 
AnswerRe: regarding project!! Pin
Rajkumar R26-Feb-08 0:45
Rajkumar R26-Feb-08 0:45 
GeneralRe: regarding project!! Pin
rowdy_vc++26-Feb-08 1:03
rowdy_vc++26-Feb-08 1:03 
GeneralRe: regarding project!! Pin
Rajkumar R26-Feb-08 1:10
Rajkumar R26-Feb-08 1:10 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 4:10
Maxwell Chen26-Feb-08 4:10 
QuestionRe: regarding project!! Pin
Rajkumar R26-Feb-08 5:07
Rajkumar R26-Feb-08 5:07 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 6:36
Maxwell Chen26-Feb-08 6:36 
GeneralRe: regarding project!! Pin
Maxwell Chen26-Feb-08 1:00
Maxwell Chen26-Feb-08 1:00 
GeneralRe: regarding project!! Pin
rowdy_vc++26-Feb-08 1:14
rowdy_vc++26-Feb-08 1:14 
GeneralDLL found with VS2003 but not VS2005 Pin
Merlin Tintin26-Feb-08 0:10
Merlin Tintin26-Feb-08 0:10 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Iain Clarke, Warrior Programmer26-Feb-08 0:45
Iain Clarke, Warrior Programmer26-Feb-08 0:45 
QuestionRe: DLL found with VS2003 but not VS2005 Pin
Rajkumar R26-Feb-08 0:52
Rajkumar R26-Feb-08 0:52 
GeneralRe: DLL found with VS2003 but not VS2005 Pin
Iain Clarke, Warrior Programmer26-Feb-08 1:01
Iain Clarke, Warrior Programmer26-Feb-08 1:01 
QuestionRe: DLL found with VS2003 but not VS2005 Pin
Rajkumar R26-Feb-08 0:56
Rajkumar R26-Feb-08 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.