Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the MFC future Pin
yu-jian26-Feb-13 17:44
yu-jian26-Feb-13 17:44 
AnswerRe: What is the MFC future Pin
_AnsHUMAN_ 27-Feb-13 1:42
_AnsHUMAN_ 27-Feb-13 1:42 
AnswerRe: What is the MFC future Pin
Joe Woodbury4-Mar-13 12:00
professionalJoe Woodbury4-Mar-13 12:00 
QuestionWere is a source of "sal.h" header file? Pin
Vaclav_25-Feb-13 5:19
Vaclav_25-Feb-13 5:19 
AnswerRe: Were is a source of "sal.h" header file? Pin
Richard MacCutchan25-Feb-13 5:44
mveRichard MacCutchan25-Feb-13 5:44 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_25-Feb-13 5:52
Vaclav_25-Feb-13 5:52 
GeneralRe: Were is a source of "sal.h" header file? Pin
SoMad25-Feb-13 6:39
professionalSoMad25-Feb-13 6:39 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_25-Feb-13 9:21
Vaclav_25-Feb-13 9:21 
QuestionGoogle contacts from Visual Studio 2008 C++ desktop application Pin
Member 86892625-Feb-13 0:54
Member 86892625-Feb-13 0:54 
QuestionHow to resize a property sheet according to the DPI settings in MFC. Pin
mbatra3124-Feb-13 22:35
mbatra3124-Feb-13 22:35 
AnswerRe: How to resize a property sheet according to the DPI settings in MFC. Pin
Richard MacCutchan25-Feb-13 0:22
mveRichard MacCutchan25-Feb-13 0:22 
QuestionDisplaying Image from stream Pin
Sachin k Rajput 24-Feb-13 17:55
Sachin k Rajput 24-Feb-13 17:55 
AnswerRe: Displaying Image from stream Pin
SoMad24-Feb-13 18:58
professionalSoMad24-Feb-13 18:58 
GeneralRe: Displaying Image from stream Pin
Sachin k Rajput 24-Feb-13 19:05
Sachin k Rajput 24-Feb-13 19:05 
I checked for an image of a particular data bytes then read it and wrote the code like this..
C++
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 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 

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.