Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Displaying Image from stream Pin
SoMad24-Feb-13 18:58
professionalSoMad24-Feb-13 18:58 
I have never tried doing it this way, but it looks like you took the sample from here[^], removed some stuff to make it simpler and changed it to write directly to your generic IStream object. I am not sure I like the whole thing, but it is kind of an interesting approach - if it works.

You do not show how you acquire the data that is stored in chIncomingDataBuffer. Are you sure this buffer contains an entire image?

I don't know if it is going to work, but right after you write the data to your pstream, its internal position will be pointing to the end of the data you just wrote. Try calling Seek() in order to change it to point to the start of the data.

Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 19:05
Sachin k Rajput 24-Feb-13 19:05 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 19:10
professionalSoMad24-Feb-13 19:10 
GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 19:53
Sachin k Rajput 24-Feb-13 19:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 20:18
professionalSoMad24-Feb-13 20:18 
GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 20:28
Sachin k Rajput 24-Feb-13 20:28 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 21:31
professionalSoMad24-Feb-13 21:31 
GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 21:53
Sachin k Rajput 24-Feb-13 21:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 22:09
professionalSoMad24-Feb-13 22:09 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:20
mveRichard MacCutchan25-Feb-13 0:20 
GeneralRe: Displaying Image from stream Pin
SoMad25-Feb-13 0:48
professionalSoMad25-Feb-13 0:48 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:55
mveRichard MacCutchan25-Feb-13 0:55 
AnswerRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 0:51
mveRichard MacCutchan25-Feb-13 0:51 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Sachin k Rajput 25-Feb-13 1:49
Sachin k Rajput 25-Feb-13 1:49 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 3:04
mveRichard MacCutchan25-Feb-13 3:04 
QuestionConnect directshow filters Pin
11moshiko1124-Feb-13 4:41
11moshiko1124-Feb-13 4:41 
QuestionBuild for 64bit Pin
john563221-Feb-13 23:13
john563221-Feb-13 23:13 
AnswerRe: Build for 64bit Pin
Richard MacCutchan21-Feb-13 23:55
mveRichard MacCutchan21-Feb-13 23:55 
AnswerRe: Build for 64bit Pin
«_Superman_»23-Feb-13 15:51
professional«_Superman_»23-Feb-13 15:51 
GeneralRe: Build for 64bit Pin
john563224-Feb-13 20:28
john563224-Feb-13 20:28 
QuestionButon Control Text Display problem in MFC Pin
Lakshman c b21-Feb-13 17:04
Lakshman c b21-Feb-13 17:04 
AnswerRe: Buton Control Text Display problem in MFC Pin
yu-jian23-Feb-13 3:30
yu-jian23-Feb-13 3:30 
GeneralRe: Buton Control Text Display problem in MFC Pin
Lakshman c b24-Feb-13 18:34
Lakshman c b24-Feb-13 18:34 
GeneralRe: Buton Control Text Display problem in MFC Pin
yu-jian24-Feb-13 21:31
yu-jian24-Feb-13 21:31 
GeneralRe: Buton Control Text Display problem in MFC Pin
SoMad24-Feb-13 19:07
professionalSoMad24-Feb-13 19:07 

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.