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

C / C++ / MFC

 
QuestionRe: SHFILEINFO read icon throw exception Pin
CPallini9-Jan-11 22:31
mveCPallini9-Jan-11 22:31 
AnswerRe: SHFILEINFO read icon throw exception Pin
Richard MacCutchan10-Jan-11 0:05
mveRichard MacCutchan10-Jan-11 0:05 
GeneralRe: SHFILEINFO read icon throw exception Pin
yu-jian13-Jan-11 1:57
yu-jian13-Jan-11 1:57 
QuestionHow to show different window layout Pin
cy163@hotmail.com9-Jan-11 2:11
cy163@hotmail.com9-Jan-11 2:11 
AnswerRe: How to show different window layout Pin
«_Superman_»9-Jan-11 7:45
professional«_Superman_»9-Jan-11 7:45 
QuestionAnother academic question - compiler options or #pragma ? Pin
Vaclav_8-Jan-11 10:28
Vaclav_8-Jan-11 10:28 
AnswerRe: Another academic question - compiler options or #pragma ? Pin
Aescleal8-Jan-11 10:44
Aescleal8-Jan-11 10:44 
AnswerRe: Another academic question - compiler options or #pragma ? Pin
T21028-Jan-11 14:20
T21028-Jan-11 14: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 1:53
Paul Michalik9-Jan-11 1:53 
GeneralRe: Another academic question - compiler options or #pragma ? Pin
Vaclav_9-Jan-11 6:17
Vaclav_9-Jan-11 6:17 
QuestionVC 6.0 command line string Pin
Vaclav_8-Jan-11 10:03
Vaclav_8-Jan-11 10:03 
AnswerRe: VC 6.0 command line string Pin
T21028-Jan-11 14:27
T21028-Jan-11 14:27 
QuestionCompiler is ignoring code - VC 6.0 SOLVED [modified] Pin
Vaclav_8-Jan-11 6:00
Vaclav_8-Jan-11 6:00 
AnswerRe: Compiler is ignoring code - VC 6.0 Pin
User 74293388-Jan-11 6:34
professionalUser 74293388-Jan-11 6:34 
AnswerRe: Compiler is ignoring code - VC 6.0 Pin
Maximilien8-Jan-11 8:17
Maximilien8-Jan-11 8:17 
GeneralRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
Vaclav_8-Jan-11 9:53
Vaclav_8-Jan-11 9:53 
AnswerRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
jschell8-Jan-11 10:05
jschell8-Jan-11 10:05 
GeneralRe: Compiler is ignoring code - VC 6.0 SOLVED Pin
Vaclav_8-Jan-11 10:17
Vaclav_8-Jan-11 10:17 
QuestionExpanding items in CTreeCtrl Pin
Sakhalean8-Jan-11 4:16
Sakhalean8-Jan-11 4:16 
AnswerRe: Expanding items in CTreeCtrl Pin
User 74293388-Jan-11 4:42
professionalUser 74293388-Jan-11 4:42 
AnswerRe: Expanding items in CTreeCtrl Pin
jk chan8-Jan-11 6:24
jk chan8-Jan-11 6:24 
AnswerRe: Expanding items in CTreeCtrl Pin
janaswamy uday8-Jan-11 7:55
janaswamy uday8-Jan-11 7:55 
JokeRe: Expanding items in CTreeCtrl Pin
User 74293388-Jan-11 8:19
professionalUser 74293388-Jan-11 8:19 
QuestionOperator >> istream [modified] Pin
Amine MAMA8-Jan-11 2:31
Amine MAMA8-Jan-11 2:31 
AnswerRe: Operator >> istream Pin
Luc Pattyn8-Jan-11 2:36
sitebuilderLuc Pattyn8-Jan-11 2: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.