Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to update the screen continuously when I keep the key pressing [modified] Pin
followait17-Nov-07 0:52
followait17-Nov-07 0:52 
GeneralRe: How to update the screen continuously when I keep the key pressing Pin
Nelek18-Nov-07 22:09
protectorNelek18-Nov-07 22:09 
GeneralRe: How to update the screen continuously when I keep the key pressing Pin
followait19-Nov-07 3:40
followait19-Nov-07 3:40 
GeneralRe: How to update the screen continuously when I keep the key pressing Pin
Nelek19-Nov-07 21:44
protectorNelek19-Nov-07 21:44 
GeneralRe: How to update the screen continuously when I keep the key pressing Pin
followait20-Nov-07 1:40
followait20-Nov-07 1:40 
QuestionDifferent displays on two computers with same screen resolution. [modified] Pin
followait16-Nov-07 16:57
followait16-Nov-07 16:57 
AnswerRe: Different displays on two computers with same screen resolution. Pin
Nelek18-Nov-07 22:07
protectorNelek18-Nov-07 22:07 
Questiona pointer i can not delete! Pin
King Tran16-Nov-07 16:17
King Tran16-Nov-07 16:17 
unsigned char* pImg1=new unsigned char[40+120*30];
unsigned char* pImg2=new unsigned char[40+92*30];
unsigned char* pDib1=pImg1+40;
unsigned char* pDib2=pImg2+40;
//int the next codes i give the pDib2 values to pDib1, assume, i have
//given the pImg2 values before
for(int i=0;i<30;i++)
{
int k=0;
for(int j=0;j<90; )
{
pDib1[i*120+j+k]=pDib2[i*92+j++];
pDib1[i*120+j+k]=pDib2[i*92+j++];
pDib1[i*120+j+k]=pDib2[i*92+j++];
pDib1[i*120+j+k]=0;
}
}

delete []pImg1;
delete []pImg2;

when i want to delete the two pointers, there is debug error! i suspect the pImg1 memory space is bigger than its defination, but from the upper loop, the last value is pDib[29*120*90+29]=pDib[2599], the memory spance is just equal to the defination, what the matter?

thanks first
AnswerRe: a pointer i can not delete! Pin
followait16-Nov-07 17:09
followait16-Nov-07 17:09 
AnswerRe: a pointer i can not delete! Pin
Jheriko++17-Nov-07 16:00
Jheriko++17-Nov-07 16:00 
GeneralRe: a pointer i can not delete! Pin
King Tran19-Nov-07 1:33
King Tran19-Nov-07 1:33 
Questionhow to get all the xml content using MSXML? Pin
lostangels16-Nov-07 15:54
lostangels16-Nov-07 15:54 
QuestionRe: how to get all the xml content using MSXML? Pin
bob1697217-Nov-07 6:01
bob1697217-Nov-07 6:01 
QuestionInsert popup menu Pin
Tony Teveris16-Nov-07 14:57
Tony Teveris16-Nov-07 14:57 
AnswerRe: Insert popup menu Pin
Hamid_RT16-Nov-07 21:21
Hamid_RT16-Nov-07 21:21 
GeneralRe: Insert popup menu Pin
Tony Teveris18-Nov-07 10:46
Tony Teveris18-Nov-07 10:46 
GeneralRe: Insert popup menu Pin
Hamid_RT18-Nov-07 20:42
Hamid_RT18-Nov-07 20:42 
Questionintialization failure? Pin
acerunner31616-Nov-07 12:03
acerunner31616-Nov-07 12:03 
AnswerRe: intialization failure? Pin
ThatsAlok17-Nov-07 0:16
ThatsAlok17-Nov-07 0:16 
GeneralRe: intialization failure? Pin
acerunner31619-Nov-07 11:57
acerunner31619-Nov-07 11:57 
Question[Message Deleted] Pin
azigrec16-Nov-07 9:18
azigrec16-Nov-07 9:18 
QuestionRe: problem Pin
Maximilien16-Nov-07 9:46
Maximilien16-Nov-07 9:46 
QuestionRe: problem Pin
David Crow16-Nov-07 10:56
David Crow16-Nov-07 10:56 
GeneralRe: problem Pin
Peter Weyzen16-Nov-07 11:17
Peter Weyzen16-Nov-07 11:17 
GeneralRe: problem Pin
David Crow17-Nov-07 3:30
David Crow17-Nov-07 3:30 

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.