Click here to Skip to main content
15,878,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: SHFILEINFO read icon throw exception Pin
CPallini9-Jan-11 21:31
mveCPallini9-Jan-11 21:31 
AnswerRe: SHFILEINFO read icon throw exception Pin
Richard MacCutchan9-Jan-11 23:05
mveRichard MacCutchan9-Jan-11 23:05 
GeneralRe: SHFILEINFO read icon throw exception Pin
yu-jian13-Jan-11 0:57
yu-jian13-Jan-11 0:57 
QuestionHow to show different window layout Pin
cy163@hotmail.com9-Jan-11 1:11
cy163@hotmail.com9-Jan-11 1:11 
AnswerRe: How to show different window layout Pin
«_Superman_»9-Jan-11 6:45
professional«_Superman_»9-Jan-11 6:45 
QuestionAnother academic question - compiler options or #pragma ? Pin
Vaclav_8-Jan-11 9:28
Vaclav_8-Jan-11 9:28 
AnswerRe: Another academic question - compiler options or #pragma ? Pin
Aescleal8-Jan-11 9:44
Aescleal8-Jan-11 9:44 
AnswerRe: Another academic question - compiler options or #pragma ? Pin
T21028-Jan-11 13:20
T21028-Jan-11 13:20 
To link in libraries, the header files that require the library use #pragma to include the library. I do not use compiler options since I do not want to include libraries that I do not need or might not need in the future if I no longer use a specific header. Another reason I prefer not to use compiler options is that I have had a lot of extra work porting Visual C++ to newer editions when some compiler options such as include directories were thrown out.

Note that you should also might use #pragma message to list libraries that have included when you set a particular preprocessor flag. This would make porting to another compiler that does not support #pragma easier.

When I do use compiler options, I use one of a few .props files with some project specific settings for things like preprocessor macros. I do not modify project settings via the GUI provided with Visual C++, except for a handful of options that do not load properly from props files.
AnswerRe: Another academic question - compiler options or #pragma ? Pin
Paul Michalik9-Jan-11 0:53
Paul Michalik9-Jan-11 0:53 
GeneralRe: Another academic question - compiler options or #pragma ? Pin
Vaclav_9-Jan-11 5:17
Vaclav_9-Jan-11 5:17 
QuestionVC 6.0 command line string Pin
Vaclav_8-Jan-11 9:03
Vaclav_8-Jan-11 9:03 
AnswerRe: VC 6.0 command line string Pin
T21028-Jan-11 13:27
T21028-Jan-11 13:27 
QuestionCompiler is ignoring code - VC 6.0 SOLVED [modified] Pin
Vaclav_8-Jan-11 5:00
Vaclav_8-Jan-11 5:00 
AnswerRe: Compiler is ignoring code - VC 6.0 Pin
User 74293388-Jan-11 5:34
professionalUser 74293388-Jan-11 5:34 
AnswerRe: Compiler is ignoring code - VC 6.0 Pin
Maximilien8-Jan-11 7:17
Maximilien8-Jan-11 7:17 
GeneralRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
Vaclav_8-Jan-11 8:53
Vaclav_8-Jan-11 8:53 
AnswerRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
jschell8-Jan-11 9:05
jschell8-Jan-11 9:05 
GeneralRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
Vaclav_8-Jan-11 9:17
Vaclav_8-Jan-11 9:17 
QuestionExpanding items in CTreeCtrl Pin
Sakhalean8-Jan-11 3:16
Sakhalean8-Jan-11 3:16 
AnswerRe: Expanding items in CTreeCtrl Pin
User 74293388-Jan-11 3:42
professionalUser 74293388-Jan-11 3:42 
AnswerRe: Expanding items in CTreeCtrl Pin
jk chan8-Jan-11 5:24
jk chan8-Jan-11 5:24 
AnswerRe: Expanding items in CTreeCtrl Pin
janaswamy uday8-Jan-11 6:55
janaswamy uday8-Jan-11 6:55 
JokeRe: Expanding items in CTreeCtrl Pin
User 74293388-Jan-11 7:19
professionalUser 74293388-Jan-11 7:19 
QuestionOperator >> istream [modified] Pin
Amine MAMA8-Jan-11 1:31
Amine MAMA8-Jan-11 1:31 
AnswerRe: Operator >> istream Pin
Luc Pattyn8-Jan-11 1:36
sitebuilderLuc Pattyn8-Jan-11 1:36 

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.