Click here to Skip to main content
16,021,125 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to load a file in help? Pin
deadlyabbas15-Sep-09 20:14
deadlyabbas15-Sep-09 20:14 
AnswerRe: How to load a file in help? Pin
CPallini15-Sep-09 20:58
mveCPallini15-Sep-09 20:58 
QuestionRS232 communication in VC++ 6.0 Pin
diptipanchal15-Sep-09 19:26
diptipanchal15-Sep-09 19:26 
AnswerRe: RS232 communication in VC++ 6.0 Pin
Cedric Moonen15-Sep-09 20:27
Cedric Moonen15-Sep-09 20:27 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Neil Urquhart15-Sep-09 21:12
Neil Urquhart15-Sep-09 21:12 
GeneralRe: RS232 communication in VC++ 6.0 Pin
diptipanchal15-Sep-09 21:59
diptipanchal15-Sep-09 21:59 
AnswerRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:11
Iain Clarke, Warrior Programmer15-Sep-09 21:11 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 21:22
mveCPallini15-Sep-09 21:22 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 21:51
Iain Clarke, Warrior Programmer15-Sep-09 21:51 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 21:57
mveCPallini15-Sep-09 21:57 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 22:13
Iain Clarke, Warrior Programmer15-Sep-09 22:13 
GeneralRe: RS232 communication in VC++ 6.0 Pin
CPallini15-Sep-09 22:20
mveCPallini15-Sep-09 22:20 
GeneralRe: RS232 communication in VC++ 6.0 Pin
Iain Clarke, Warrior Programmer15-Sep-09 22:52
Iain Clarke, Warrior Programmer15-Sep-09 22:52 
QuestionHow to use order by clause in insert into statement Pin
jadhavjitendrar15-Sep-09 19:23
jadhavjitendrar15-Sep-09 19:23 
AnswerRe: How to use order by clause in insert into statement Pin
«_Superman_»15-Sep-09 19:31
professional«_Superman_»15-Sep-09 19:31 
AnswerRe: How to use order by clause in insert into statement Pin
CPallini15-Sep-09 21:08
mveCPallini15-Sep-09 21:08 
QuestionCompiler Design in C Pin
DarkSorrow3815-Sep-09 19:05
DarkSorrow3815-Sep-09 19:05 
AnswerRe: Compiler Design in C Pin
«_Superman_»15-Sep-09 19:28
professional«_Superman_»15-Sep-09 19:28 
QuestionEXECUTE_OFFLINE_DIAGS example Pin
Abinash Mohanty15-Sep-09 18:48
Abinash Mohanty15-Sep-09 18:48 
QuestionDrawing lines, shapes on bitmaps Pin
Game-point15-Sep-09 18:22
Game-point15-Sep-09 18:22 
AnswerRe: Drawing lines, shapes on bitmaps Pin
Naveen15-Sep-09 18:36
Naveen15-Sep-09 18:36 
GeneralRe: Drawing lines, shapes on bitmaps Pin
Game-point15-Sep-09 19:02
Game-point15-Sep-09 19:02 
Hi naveen

Thanks for your replay .. i tried

HDC pDC=::GetDC(0);
		HDC TmpDC=CreateCompatibleDC(pDC);
		CImage _image;
		_image.Load(_T("//read.tif"));
		//HGDIOBJ hgdiobj = SelectObject(TmpDC,(HGDIOBJ)_image);
		CRect Recto(20, 20, 20, 20);
		int width=_image.GetWidth();
		int height=_image.GetHeight();

		HDC dcBmp=CreateCompatibleDC(TmpDC);		
		HGDIOBJ TmpObj2 = SelectObject(dcBmp,(HGDIOBJ)_image);		
		BitBlt(TmpDC,0,0,width,height,dcBmp,0,0,SRCCOPY);
		SelectObject(TmpDC,TmpObj2);
		
		DeleteDC(dcBmp);


but its not showing the rectangles in image ..??

plz reply

~~~~~~~~~~~~~Raju~~~~~~~~~~~~~


GeneralRe: Drawing lines, shapes on bitmaps Pin
«_Superman_»15-Sep-09 19:34
professional«_Superman_»15-Sep-09 19:34 
GeneralRe: Drawing lines, shapes on bitmaps Pin
Game-point15-Sep-09 19:54
Game-point15-Sep-09 19:54 
GeneralRe: Drawing lines, shapes on bitmaps Pin
«_Superman_»15-Sep-09 19:59
professional«_Superman_»15-Sep-09 19:59 

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.