Click here to Skip to main content
15,889,648 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get the letter to a drivename? Pin
David Crow8-Feb-06 6:43
David Crow8-Feb-06 6:43 
GeneralRe: How to get the letter to a drivename? Pin
Rage8-Feb-06 6:27
professionalRage8-Feb-06 6:27 
GeneralRe: How to get the letter to a drivename? Pin
ahmet07038-Feb-06 20:33
ahmet07038-Feb-06 20:33 
QuestionScrollView doesn't paint correctly Pin
#realJSOP8-Feb-06 1:57
mve#realJSOP8-Feb-06 1:57 
QuestionAssertion error in OnDraw Pin
Anu_Bala8-Feb-06 0:55
Anu_Bala8-Feb-06 0:55 
AnswerRe: Assertion error in OnDraw Pin
Abebe8-Feb-06 1:20
Abebe8-Feb-06 1:20 
GeneralRe: Assertion error in OnDraw Pin
Anu_Bala8-Feb-06 16:44
Anu_Bala8-Feb-06 16:44 
GeneralRe: Assertion error in OnDraw Pin
_anil_8-Feb-06 19:03
_anil_8-Feb-06 19:03 
Anu_Bala wrote:
gpen1.CreatePen(PS_SOLID,2,RGB(255,0,0));
pDC->SelectObject(&gpen1);


First when ever you use SelectObject don't forget to Select back the old object e.g

CPen NewPen;
CPen* pOldPen;
NewPen.CreatePen((PS_SOLID,2,RGB(255,0,0));
pOldPen = pDC->SelectObject(&NewPen);
:
:Draw the rest....
:

// After Drawing
pDC->SelectObject(pOldPen);



Anu_Bala wrote:
for(int j= 0;j<8;j++)
{

pDC->SetPixel(a[j]+100,420-b[j],RGB(0,255,0));
pDC->MoveTo(a[j]+100,420-b[j]);
pDC->LineTo(a[j+1]+100,420-b[j+1]);
}


Second .. I think you might have problem in data of array a[] and b[] which may cause assertion. Where they are changing plz check.


Regards
Anil
AnswerRe: Assertion error in OnDraw Pin
_anil_8-Feb-06 1:22
_anil_8-Feb-06 1:22 
Questionhow to get a value from registery in MFC application Pin
Issa Salama8-Feb-06 0:00
Issa Salama8-Feb-06 0:00 
AnswerRe: how to get a value from registery in MFC application Pin
Owner drawn8-Feb-06 0:09
Owner drawn8-Feb-06 0:09 
AnswerRe: how to get a value from registery in MFC application Pin
ThatsAlok8-Feb-06 18:55
ThatsAlok8-Feb-06 18:55 
QuestionNetwork Connection status monotoring Pin
Tony Kurishunkal7-Feb-06 23:56
Tony Kurishunkal7-Feb-06 23:56 
AnswerRe: Network Connection status monotoring Pin
bantisk8-Feb-06 1:12
bantisk8-Feb-06 1:12 
QuestionRe: Network Connection status monotoring Pin
David Crow8-Feb-06 3:52
David Crow8-Feb-06 3:52 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal13-Feb-06 22:15
Tony Kurishunkal13-Feb-06 22:15 
QuestionRe: Network Connection status monotoring Pin
David Crow14-Feb-06 2:50
David Crow14-Feb-06 2:50 
AnswerRe: Network Connection status monotoring Pin
Tony Kurishunkal14-Feb-06 16:02
Tony Kurishunkal14-Feb-06 16:02 
QuestionGroup box in XP Pin
BabuZaleela7-Feb-06 23:54
BabuZaleela7-Feb-06 23:54 
AnswerRe: Group box in XP Pin
-Dy8-Feb-06 1:29
-Dy8-Feb-06 1:29 
Questionmove button Pin
mariantonietta7-Feb-06 23:41
mariantonietta7-Feb-06 23:41 
AnswerRe: move button Pin
_anil_7-Feb-06 23:44
_anil_7-Feb-06 23:44 
AnswerRe: move button Pin
benjymous8-Feb-06 0:41
benjymous8-Feb-06 0:41 
AnswerRe: move button Pin
David Crow8-Feb-06 3:54
David Crow8-Feb-06 3:54 
Questionmenu Pin
sundar_mca7-Feb-06 23:12
sundar_mca7-Feb-06 23:12 

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.