Click here to Skip to main content
15,885,985 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic Question : Displaying Alphabets Pin
David Crow15-Sep-09 16:59
David Crow15-Sep-09 16:59 
GeneralRe: Basic Question : Displaying Alphabets Pin
UKM_Student21-Oct-09 21:57
UKM_Student21-Oct-09 21:57 
QuestionRichEdit20WPT / Outlook Style Receipient Control Pin
Steve Thresher14-Sep-09 23:38
Steve Thresher14-Sep-09 23:38 
AnswerRe: RichEdit20WPT / Outlook Style Receipient Control Pin
Randor 15-Sep-09 8:29
professional Randor 15-Sep-09 8:29 
QuestionSYSTEMTIME Pin
VVVimal14-Sep-09 23:37
VVVimal14-Sep-09 23:37 
AnswerRe: SYSTEMTIME Pin
CPallini14-Sep-09 23:49
mveCPallini14-Sep-09 23:49 
AnswerRe: SYSTEMTIME Pin
Randor 15-Sep-09 1:36
professional Randor 15-Sep-09 1:36 
QuestionShowing Error [modified] Pin
Game-point14-Sep-09 22:42
Game-point14-Sep-09 22:42 
Hi



    CImage image;
image.Load (_T(read.tif"));
   //x1 = 8108, y1 =68 , x2 = 8116,y2 = 82
CRect rect(x1,y1,x2,y2);
CDC *pDC=CDC::FromHandle(image.GetDC());
pDC->Draw3dRect(rect,RGB(255, 0, 0), RGB(0, 255, 0));
image.Save(_T("D:/2009ga.jpg"));


when i try to draw the rectangle in image ...
showing error msg like Expression : m_hDC == 0..but not drwing the rectangle in image..whyConfused | :confused: Confused | :confused: Confused | :confused:

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


modified on Tuesday, September 15, 2009 4:49 AM

QuestionRe: Showing Error Pin
CPallini14-Sep-09 22:59
mveCPallini14-Sep-09 22:59 
AnswerRe: Showing Error Pin
Game-point14-Sep-09 23:20
Game-point14-Sep-09 23:20 
GeneralRe: Showing Error Pin
CPallini14-Sep-09 23:43
mveCPallini14-Sep-09 23:43 
Questiondynamically create controls on dialog box Pin
sunnyram14-Sep-09 22:12
sunnyram14-Sep-09 22:12 
AnswerRe: dynamically create controls on dialog box Pin
CPallini14-Sep-09 22:39
mveCPallini14-Sep-09 22:39 
GeneralRe: dynamically create controls on dialog box Pin
sunnyram16-Sep-09 22:37
sunnyram16-Sep-09 22:37 
QuestionRe: dynamically create controls on dialog box Pin
David Crow15-Sep-09 2:54
David Crow15-Sep-09 2:54 
AnswerRe: dynamically create controls on dialog box Pin
sunnyram16-Sep-09 22:39
sunnyram16-Sep-09 22:39 
QuestionAtivirus-Firewall is blocking a needed global hook! Pin
Russell'14-Sep-09 22:09
Russell'14-Sep-09 22:09 
QuestionRe: Ativirus-Firewall is blocking a needed global hook! Pin
David Crow15-Sep-09 2:56
David Crow15-Sep-09 2:56 
QuestionpRecordset GetItem Pin
MsmVc14-Sep-09 21:38
MsmVc14-Sep-09 21:38 
AnswerRe: pRecordset GetItem Pin
MsmVc14-Sep-09 22:28
MsmVc14-Sep-09 22:28 
QuestionRe: pRecordset GetItem Pin
David Crow15-Sep-09 3:01
David Crow15-Sep-09 3:01 
QuestionBasics C++ Pin
john563214-Sep-09 21:09
john563214-Sep-09 21:09 
AnswerRe: Basics C++ Pin
Richard MacCutchan14-Sep-09 21:32
mveRichard MacCutchan14-Sep-09 21:32 
QuestionRe: Basics C++ Pin
CPallini14-Sep-09 21:37
mveCPallini14-Sep-09 21:37 
AnswerRe: Basics C++ Pin
_AnsHUMAN_ 14-Sep-09 21:50
_AnsHUMAN_ 14-Sep-09 21:50 

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.