Click here to Skip to main content
11,634,634 members (63,897 online)

C / C++ / MFC

 
GeneralRe: What is the MFC future Pin
Pete O'Hanlon26-Feb-13 3:30
protectorPete O'Hanlon26-Feb-13 3:30 
AnswerRe: What is the MFC future Pin
Stefan_Lang26-Feb-13 3:16
memberStefan_Lang26-Feb-13 3:16 
GeneralRe: What is the MFC future Pin
yu-jian26-Feb-13 17:44
groupyu-jian26-Feb-13 17:44 
AnswerRe: What is the MFC future Pin
_AnsHUMAN_ 27-Feb-13 1:42
group_AnsHUMAN_ 27-Feb-13 1:42 
AnswerRe: What is the MFC future Pin
Joe Woodbury4-Mar-13 12:00
memberJoe Woodbury4-Mar-13 12:00 
QuestionWere is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 5:19
memberVaclav_Sal25-Feb-13 5:19 
AnswerRe: Were is a source of "sal.h" header file? Pin
Richard MacCutchan25-Feb-13 5:44
mvpRichard MacCutchan25-Feb-13 5:44 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 5:52
memberVaclav_Sal25-Feb-13 5:52 
GeneralRe: Were is a source of "sal.h" header file? Pin
SoMad25-Feb-13 6:39
memberSoMad25-Feb-13 6:39 
GeneralRe: Were is a source of "sal.h" header file? Pin
Vaclav_Sal25-Feb-13 9:21
memberVaclav_Sal25-Feb-13 9:21 
QuestionGoogle contacts from Visual Studio 2008 C++ desktop application Pin
Member 86892625-Feb-13 0:54
memberMember 86892625-Feb-13 0:54 
QuestionHow to resize a property sheet according to the DPI settings in MFC. Pin
mbatra3124-Feb-13 22:35
membermbatra3124-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
mvpRichard MacCutchan25-Feb-13 0:22 
QuestionDisplaying Image from stream Pin
toms from newdelhi24-Feb-13 17:55
membertoms from newdelhi24-Feb-13 17:55 
I'm trying to display an image from a stream data.
But there is no image when getting image::from stream.
It's my source code:
IStream* pstream = NULL;
	if(SUCCEEDED(CreateStreamOnHGlobal(NULL, TRUE, &pstream)))
	{
		
		ULONG lreal = 0;
 
		pstream->Write(chIncomingDataBuffer, iEnd, &lreal );
		if(pstream!= NULL)
		{
		
		MessageBox(hWnd,
						" Stream is OK",
						"Connection strt",
						MB_ICONINFORMATION|MB_OK);
		
		}
		Image* image =Image::FromStream(pstream);
		if(image)
		{
		
		RECT rect;
 
			::GetWindowRect(hWnd, &rect);
			Graphics graphics(hWnd);
			graphics.DrawImage(image, 0, 0, rect.right-rect.left, rect.bottom-rect.top);
	
		}
		else
		{
		
		MessageBox(hWnd,
						"No image is written",
						"Connection strt",
						MB_ICONINFORMATION|MB_OK);
		
		
		}
		if(image)
			delete image;
		image = NULL;
		if(pstream)
			pstream->Release();
		pstream = NULL;
	
	}


There is no image from data. Can anyone help me in this?
Thanks!
AnswerRe: Displaying Image from stream Pin
SoMad24-Feb-13 18:58
memberSoMad24-Feb-13 18:58 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 19:05
membertoms from newdelhi24-Feb-13 19:05 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 19:10
memberSoMad24-Feb-13 19:10 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 19:53
membertoms from newdelhi24-Feb-13 19:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 20:18
memberSoMad24-Feb-13 20:18 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 20:28
membertoms from newdelhi24-Feb-13 20:28 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 21:31
memberSoMad24-Feb-13 21:31 
GeneralRe: Displaying Image from stream Pin
toms from newdelhi24-Feb-13 21:53
membertoms from newdelhi24-Feb-13 21:53 
GeneralRe: Displaying Image from stream Pin
SoMad24-Feb-13 22:09
memberSoMad24-Feb-13 22:09 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:20
mvpRichard MacCutchan25-Feb-13 0:20 
GeneralRe: Displaying Image from stream Pin
SoMad25-Feb-13 0:48
memberSoMad25-Feb-13 0:48 
GeneralRe: Displaying Image from stream Pin
Richard MacCutchan25-Feb-13 0:55
mvpRichard MacCutchan25-Feb-13 0:55 
AnswerRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 0:51
mvpRichard MacCutchan25-Feb-13 0:51 
GeneralRe: Displaying Image from stream - [REPOST] Pin
toms from newdelhi25-Feb-13 1:49
membertoms from newdelhi25-Feb-13 1:49 
GeneralRe: Displaying Image from stream - [REPOST] Pin
Richard MacCutchan25-Feb-13 3:04
mvpRichard MacCutchan25-Feb-13 3:04 
QuestionConnect directshow filters Pin
11moshiko1124-Feb-13 4:41
member11moshiko1124-Feb-13 4:41 
QuestionBuild for 64bit Pin
john563221-Feb-13 23:13
memberjohn563221-Feb-13 23:13 
AnswerRe: Build for 64bit Pin
Richard MacCutchan21-Feb-13 23:55
mvpRichard MacCutchan21-Feb-13 23:55 
AnswerRe: Build for 64bit Pin
«_Superman_»23-Feb-13 15:51
member«_Superman_»23-Feb-13 15:51 
GeneralRe: Build for 64bit Pin
john563224-Feb-13 20:28
memberjohn563224-Feb-13 20:28 
QuestionButon Control Text Display problem in MFC Pin
Lakshman c b21-Feb-13 17:04
memberLakshman c b21-Feb-13 17:04 
AnswerRe: Buton Control Text Display problem in MFC Pin
yu-jian23-Feb-13 3:30
groupyu-jian23-Feb-13 3:30 
GeneralRe: Buton Control Text Display problem in MFC Pin
Lakshman c b24-Feb-13 18:34
memberLakshman c b24-Feb-13 18:34 
GeneralRe: Buton Control Text Display problem in MFC Pin
yu-jian24-Feb-13 21:31
groupyu-jian24-Feb-13 21:31 
GeneralRe: Buton Control Text Display problem in MFC Pin
SoMad24-Feb-13 19:07
memberSoMad24-Feb-13 19:07 
Questionsystem() in MFC Pin
RomTibi21-Feb-13 9:51
memberRomTibi21-Feb-13 9:51 
AnswerRe: system() in MFC Pin
Garth J Lancaster21-Feb-13 10:16
memberGarth J Lancaster21-Feb-13 10:16 
GeneralRe: system() in MFC Pin
Stephen Hewitt21-Feb-13 14:55
memberStephen Hewitt21-Feb-13 14:55 
GeneralRe: system() in MFC Pin
Garth J Lancaster21-Feb-13 15:03
memberGarth J Lancaster21-Feb-13 15:03 
AnswerRe: system() in MFC Pin
Rajesh R Subramanian21-Feb-13 19:17
memberRajesh R Subramanian21-Feb-13 19:17 
AnswerRe: system() in MFC Pin
Richard MacCutchan21-Feb-13 22:30
mvpRichard MacCutchan21-Feb-13 22:30 
GeneralRe: system() in MFC Pin
Albert Holguin24-Feb-13 7:38
memberAlbert Holguin24-Feb-13 7:38 
QuestionDoubt in c++ Pin
Jackkrishjk21-Feb-13 0:17
memberJackkrishjk21-Feb-13 0:17 
AnswerRe: Doubt in c++ Pin
Richard MacCutchan21-Feb-13 1:26
mvpRichard MacCutchan21-Feb-13 1:26 
AnswerRe: Doubt in c++ Pin
Alan Balkany21-Feb-13 4:33
memberAlan Balkany21-Feb-13 4:33 
GeneralRe: Doubt in c++ Pin
SCProrammer21-Feb-13 5:31
memberSCProrammer21-Feb-13 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.8.150728.1 | Last Updated 29 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid