Click here to Skip to main content
15,881,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert wchar to CString& Pin
Cedric Moonen23-Jun-09 20:10
Cedric Moonen23-Jun-09 20:10 
GeneralRe: convert wchar to CString& Pin
Rajesh R Subramanian23-Jun-09 20:13
professionalRajesh R Subramanian23-Jun-09 20:13 
AnswerRe: convert wchar to CString& Pin
Cedric Moonen23-Jun-09 20:07
Cedric Moonen23-Jun-09 20:07 
GeneralRe: convert wchar to CString& Pin
Rakesh523-Jun-09 20:20
Rakesh523-Jun-09 20:20 
AnswerRe: convert wchar to CString& Pin
Rajesh R Subramanian23-Jun-09 20:12
professionalRajesh R Subramanian23-Jun-09 20:12 
QuestionTabbed control from Win 32 Pin
birajendu23-Jun-09 18:05
birajendu23-Jun-09 18:05 
QuestionC++ Compiler Warnings Pin
dipuks23-Jun-09 13:37
dipuks23-Jun-09 13:37 
AnswerRe: C++ Compiler Warnings Pin
Luc Pattyn23-Jun-09 14:09
sitebuilderLuc Pattyn23-Jun-09 14:09 
Hi,

AFAIK there is only one way to create an "eternal loop" that should never generate a warning, whatever smart the compiler is:
for( ; ; ) {
   ...
}


since this is legal C/C++ code that clearly shows no exit condition. Everything else, checking on 1 or TRUE or a variable with a constant value, is bound to be flagged when compilers are smart enough, their intent is to WARN you that maybe you made a mistake.

The same holds true for empty loops:
while (someCondition); may generate a warning (unintentional empty loop, maybe due to an extraneous semi-colon), whereas
while (someCondition) {}

is fine since now the compiler must realize you typed two characters to create an empty code block.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: C++ Compiler Warnings Pin
N a v a n e e t h23-Jun-09 15:56
N a v a n e e t h23-Jun-09 15:56 
GeneralRe: C++ Compiler Warnings Pin
David Crow24-Jun-09 3:11
David Crow24-Jun-09 3:11 
AnswerRe: C++ Compiler Warnings Pin
«_Superman_»23-Jun-09 16:26
professional«_Superman_»23-Jun-09 16:26 
AnswerRe: C++ Compiler Warnings Pin
KarstenK23-Jun-09 21:31
mveKarstenK23-Jun-09 21:31 
QuestionConsiderations and implementation of a method to copy the vector<t>::iterator</t> Pin
Cyrilix23-Jun-09 9:23
Cyrilix23-Jun-09 9:23 
AnswerRe: Considerations and implementation of a method to copy the vector::iterator Pin
Stuart Dootson23-Jun-09 9:28
professionalStuart Dootson23-Jun-09 9:28 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Cyrilix23-Jun-09 10:25
Cyrilix23-Jun-09 10:25 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Stuart Dootson23-Jun-09 10:33
professionalStuart Dootson23-Jun-09 10:33 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator [modified] Pin
Michael Dunn23-Jun-09 14:41
sitebuilderMichael Dunn23-Jun-09 14:41 
GeneralRe: Considerations and implementation of a method to copy the vector::iterator Pin
Cyrilix23-Jun-09 15:03
Cyrilix23-Jun-09 15:03 
Questiontransfer date time string to SYSTEMTIME Pin
includeh1023-Jun-09 6:44
includeh1023-Jun-09 6:44 
AnswerRe: transfer date time string to SYSTEMTIME Pin
Jijo.Raj23-Jun-09 7:02
Jijo.Raj23-Jun-09 7:02 
AnswerRe: transfer date time string to SYSTEMTIME Pin
Stuart Dootson23-Jun-09 7:12
professionalStuart Dootson23-Jun-09 7:12 
Question[SOLVED] Need help with WinAPI AlphaBlend() [modified] Pin
Rozis23-Jun-09 6:06
Rozis23-Jun-09 6:06 
Questionbase or super-like functionality in C++? Pin
Michael P. Scherer23-Jun-09 5:35
Michael P. Scherer23-Jun-09 5:35 
AnswerRe: base or super-like functionality in C++? Pin
Fernando A. Gomez F.23-Jun-09 6:04
Fernando A. Gomez F.23-Jun-09 6:04 
GeneralRe: base or super-like functionality in C++? Pin
Michael P. Scherer23-Jun-09 6:09
Michael P. Scherer23-Jun-09 6:09 

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.