Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to add Items to Windows start menu? Pin
Stuart Dootson18-Sep-09 12:51
professionalStuart Dootson18-Sep-09 12:51 
QuestionMessage Removed Pin
18-Sep-09 5:02
professionalN_tro_P18-Sep-09 5:02 
AnswerRe: CUDA Anyone? Pin
zhao,kaiyong24-Sep-09 9:02
zhao,kaiyong24-Sep-09 9:02 
AnswerRe: CUDA Anyone? Pin
johnthomaswarner19-Feb-10 10:26
johnthomaswarner19-Feb-10 10:26 
QuestionHow to get rid of warning message from Microsoft code Pin
transoft18-Sep-09 4:57
transoft18-Sep-09 4:57 
AnswerRe: How to get rid of warning message from Microsoft code Pin
Richard MacCutchan18-Sep-09 5:21
mveRichard MacCutchan18-Sep-09 5:21 
AnswerRe: How to get rid of warning message from Microsoft code Pin
Michael Dunn18-Sep-09 8:38
sitebuilderMichael Dunn18-Sep-09 8:38 
AnswerRe: How to get rid of warning message from Microsoft code Pin
Richard MacCutchan18-Sep-09 22:17
mveRichard MacCutchan18-Sep-09 22:17 
transoft wrote:
while ((DWORD)lpHeader < (DWORD)(((LPSTR)lpStart) + size) && pt != NULL)


I have just reread this and it seems to me that your casts are redundant. lpStart and lpHeader are both LPTTPOLYGONHEADER types, so they should be comparable without the need for casting. Try rewriting as
while (lpHeader < (lpStart + size) && pt != NULL)

Questionsome questions about "reference to pointer" Pin
lhyblue18-Sep-09 3:57
lhyblue18-Sep-09 3:57 
AnswerRe: some questions about "reference to pointer" [modified] Pin
«_Superman_»18-Sep-09 4:08
professional«_Superman_»18-Sep-09 4:08 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 4:17
mveCPallini18-Sep-09 4:17 
GeneralRe: some questions about "reference to pointer" Pin
«_Superman_»18-Sep-09 4:19
professional«_Superman_»18-Sep-09 4:19 
GeneralRe: some questions about "reference to pointer" Pin
lhyblue18-Sep-09 4:44
lhyblue18-Sep-09 4:44 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 4:48
professionalStuart Dootson18-Sep-09 4:48 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 11:14
mveCPallini18-Sep-09 11:14 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 12:40
professionalStuart Dootson18-Sep-09 12:40 
GeneralRe: some questions about "reference to pointer" Pin
CPallini18-Sep-09 13:15
mveCPallini18-Sep-09 13:15 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson18-Sep-09 13:28
professionalStuart Dootson18-Sep-09 13:28 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 0:26
mveCPallini19-Sep-09 0:26 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 7:25
professionalStuart Dootson19-Sep-09 7:25 
GeneralRe: some questions about "reference to pointer" Pin
CPallini19-Sep-09 22:06
mveCPallini19-Sep-09 22:06 
GeneralRe: some questions about "reference to pointer" Pin
Stuart Dootson19-Sep-09 22:15
professionalStuart Dootson19-Sep-09 22:15 
QuestionDISP_E_UNKNOWNNAME Pin
Mohanraj D18-Sep-09 3:20
Mohanraj D18-Sep-09 3:20 
AnswerRe: DISP_E_UNKNOWNNAME Pin
Stuart Dootson18-Sep-09 3:25
professionalStuart Dootson18-Sep-09 3:25 
AnswerRe: DISP_E_UNKNOWNNAME Pin
CPallini18-Sep-09 3:30
mveCPallini18-Sep-09 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.