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

C / C++ / MFC

 
QuestionHow to understand CCeateContext members completely? Pin
SAMZC29-Oct-07 19:11
SAMZC29-Oct-07 19:11 
AnswerRe: How to understand CCeateContext members completely? Pin
SAMZC30-Oct-07 16:13
SAMZC30-Oct-07 16:13 
QuestionProblem with GetBitmapBits() in Win32 Pin
ashishbhatt29-Oct-07 18:49
ashishbhatt29-Oct-07 18:49 
AnswerRe: Problem with GetBitmapBits() in Win32 Pin
Naveen29-Oct-07 18:52
Naveen29-Oct-07 18:52 
GeneralRe: Problem with GetBitmapBits() in Win32 Pin
ashishbhatt29-Oct-07 19:01
ashishbhatt29-Oct-07 19:01 
GeneralRe: Problem with GetBitmapBits() in Win32 Pin
Naveen29-Oct-07 19:15
Naveen29-Oct-07 19:15 
GeneralRe: Problem with GetBitmapBits() in Win32 Pin
ashishbhatt29-Oct-07 19:26
ashishbhatt29-Oct-07 19:26 
GeneralRe: Problem with GetBitmapBits() in Win32 Pin
ashishbhatt29-Oct-07 19:08
ashishbhatt29-Oct-07 19:08 
Ok,So as you told to try GetDIBits(), I used it but I don't get the result.
I modified the original code as below.....

<br />
BYTE* lpClrData = (BYTE*)LocalAlloc(LPTR, datasize * sizeof(BYTE));<br />
	<br />
	if(GetDIBits(m_hmemdc,new_Bitmap,rect.right - rect.left,<br />
		rect.bottom - rect.top,lpClrData,&m_bminfo.bmi,DIB_RGB_COLORS) == 0)<br />
	{<br />
		MessageBox(NULL,CString("Failed to get Bits from DIB"),CString("TestRTMP"),0);<br />
	} <br />


Above function always return zero.So I don't get the ouotput.
Is there any other thing which I am missing in this code plz suggest me.

Thanks.

Ashish Bhatt

AnswerRe: Problem with GetBitmapBits() in Win32 Pin
Naveen29-Oct-07 20:39
Naveen29-Oct-07 20:39 
GeneralRe: Problem with GetBitmapBits() in Win32 Pin
ashishbhatt29-Oct-07 21:42
ashishbhatt29-Oct-07 21:42 
Questionhow to read an PNG file using c Pin
googlejumbo29-Oct-07 17:49
googlejumbo29-Oct-07 17:49 
AnswerRe: how to read an PNG file using c Pin
Paresh Chitte29-Oct-07 18:27
Paresh Chitte29-Oct-07 18:27 
Questionhow can i search an item in the MFCflexgrid? Pin
panthal29-Oct-07 17:37
panthal29-Oct-07 17:37 
AnswerRe: how can i search an item in the MFCflexgrid? Pin
chandu00429-Oct-07 19:44
chandu00429-Oct-07 19:44 
GeneralRe: how can i search an item in the MFCflexgrid? Pin
panthal29-Oct-07 20:13
panthal29-Oct-07 20:13 
GeneralRe: how can i search an item in the MFCflexgrid? Pin
chandu00429-Oct-07 21:39
chandu00429-Oct-07 21:39 
QuestionRe: how can i search an item in the MFCflexgrid? Pin
panthal29-Oct-07 23:07
panthal29-Oct-07 23:07 
GeneralOfftopic Pin
Nelek29-Oct-07 23:31
protectorNelek29-Oct-07 23:31 
GeneralRe: Offtopic Pin
chandu00430-Oct-07 2:26
chandu00430-Oct-07 2:26 
GeneralRe: Offtopic Pin
Nelek30-Oct-07 4:01
protectorNelek30-Oct-07 4:01 
QuestionCEdit control, how do we know if we press enter key? Pin
Gofur Halmurat29-Oct-07 15:39
Gofur Halmurat29-Oct-07 15:39 
AnswerRe: CEdit control, how do we know if we press enter key? Pin
Naveen29-Oct-07 16:14
Naveen29-Oct-07 16:14 
GeneralRe: CEdit control, how do we know if we press enter key? Pin
chandu00431-Oct-07 1:35
chandu00431-Oct-07 1:35 
QuestionDisplaying image (RAW format) on a control Pin
Raza568029-Oct-07 13:53
Raza568029-Oct-07 13:53 
QuestionSmall hint dialog Pin
Jarrah_1229-Oct-07 12:07
Jarrah_1229-Oct-07 12: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.