Click here to Skip to main content
13,354,885 members (90,261 online)

C / C++ / MFC

 
QuestionWere is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 6:19
memberVaclav_Sal25-Feb-13 6:19 
AnswerRe: Were is a source of "sal.h" header file? Pin
Richard MacCutchan25-Feb-13 6:44
mvpRichard MacCutchan25-Feb-13 6:44 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 6:52
memberVaclav_Sal25-Feb-13 6:52 
GeneralRe: Were is a source of "sal.h" header file? Pin
SoMad25-Feb-13 7:39
memberSoMad25-Feb-13 7:39 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 10:21
memberVaclav_Sal25-Feb-13 10:21 
QuestionDisplaying Image from stream Pin
toms from newdelhi24-Feb-13 18:55
membertoms from newdelhi24-Feb-13 18:55 
AnswerRe: Displaying Image from stream Pin
SoMad24-Feb-13 19:58
memberSoMad24-Feb-13 19:58 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 20:05
membertoms from newdelhi24-Feb-13 20:05 
I checked for an image of a particular data bytes then read it and wrote the code like this..
int iff2 = 2970;
	
	iBufferLength = iSpaceRemaining = sizeof(chIncomingDataBuffer);
	iEnd = 0;
	iSpaceRemaining -= iEnd;

	iBytesRead = recv(Socket, chIncomingDataBuffer+iEnd, iSpaceRemaining, 0);
	
	iEnd+=iBytesRead;	
	 if(iEnd ==iff2)
	{
	


		MessageBox(hWnd,
						"Image  is written ok",
						"Connection strt",
						MB_ICONINFORMATION|MB_OK);


	IStream* pstream = NULL;


In starting if I'm trying to write an image using fwrite then its ok with exact bytes data.
But on stream, its showing some data in stream but not loading any image.
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 20:10
memberSoMad24-Feb-13 20:10 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 20:53
membertoms from newdelhi24-Feb-13 20:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 21:18
memberSoMad24-Feb-13 21:18 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 21:28
membertoms from newdelhi24-Feb-13 21:28 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 22:31
memberSoMad24-Feb-13 22:31 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 22:53
membertoms from newdelhi24-Feb-13 22:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 23:09
memberSoMad24-Feb-13 23:09 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 1:20
mvpRichard MacCutchan25-Feb-13 1:20 
GeneralRe: Displaying Image from stream Pin
SoMad25-Feb-13 1:48
memberSoMad25-Feb-13 1:48 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 1:55
mvpRichard MacCutchan25-Feb-13 1:55 
AnswerRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 1:51
mvpRichard MacCutchan25-Feb-13 1:51 
GeneralRe: Displaying Image from stream - [REPOST] Pin
toms from newdelhi25-Feb-13 2:49
membertoms from newdelhi25-Feb-13 2:49 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 4:04
mvpRichard MacCutchan25-Feb-13 4:04 
QuestionDoubt in c++ Pin
Jackkrishjk21-Feb-13 1:17
memberJackkrishjk21-Feb-13 1:17 
AnswerRe: Doubt in c++ Pin
Richard MacCutchan21-Feb-13 2:26
mvpRichard MacCutchan21-Feb-13 2:26 
AnswerRe: Doubt in c++ Pin
Alan Balkany21-Feb-13 5:33
memberAlan Balkany21-Feb-13 5:33 
GeneralRe: Doubt in c++ Pin
SCProrammer21-Feb-13 6:31
memberSCProrammer21-Feb-13 6:31 

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.


Advertise | Privacy |
Web02 | 2.8.180111.1 | Last Updated 22 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid