Click here to Skip to main content
15,887,135 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 942 Pin
GKP199216-Jan-24 19:51
professionalGKP199216-Jan-24 19:51 
GeneralRe: Wordle 942 Pin
ChandraRam16-Jan-24 20:17
ChandraRam16-Jan-24 20:17 
GeneralRe: Wordle 942 Pin
OriginalGriff16-Jan-24 20:28
mveOriginalGriff16-Jan-24 20:28 
GeneralRe: Wordle 942 - 3 4 me Pin
pkfox16-Jan-24 21:06
professionalpkfox16-Jan-24 21:06 
GeneralRe: Wordle 942 Pin
Sander Rossel16-Jan-24 22:28
professionalSander Rossel16-Jan-24 22:28 
GeneralRe: Wordle 942 Pin
Cp-Coder17-Jan-24 0:09
Cp-Coder17-Jan-24 0:09 
GeneralRe: Wordle 942 (4/6) Pin
Jeremy Falcon17-Jan-24 9:33
professionalJeremy Falcon17-Jan-24 9:33 
GeneralWhere do you put your Visual Studio preprocessor directives? Pin
charlieg16-Jan-24 12:02
charlieg16-Jan-24 12:02 
Context:

I've been busy trying to get a very stable and old solution to build in VS2008. It's a mess of code and 40+ projects accumulated over the years - mostly MFC stuff - this means stdafx.h. Over the years, multiple developers (myself included) tended to slap preprocessor definitions in stdafx.h and I suspect other places; it's always fine until someone gets hurt. In this case, sometimes my solution will build and sometimes not. I started the general trend to put the definitions in the IDE properties window. I'm thinking this was a mistake, as sometimes the definitions propagate and sometimes not.

Part of the problem of specifying directives using the IDE is that Microsoft's IDEs do rude stuff to project files. I see this all the time comparing SVN commits in an attempt to determine what has changed. The IDE has no issue with re-ordering things.

So, what is your preference or practice in managing your preprocessor directives?
Charlie Gilley

β€œThey who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

Has never been more appropriate.

GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
Gary R. Wheeler16-Jan-24 12:53
Gary R. Wheeler16-Jan-24 12:53 
GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
Mircea Neacsu16-Jan-24 14:10
Mircea Neacsu16-Jan-24 14:10 
GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
charlieg16-Jan-24 15:53
charlieg16-Jan-24 15:53 
GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
honey the codewitch16-Jan-24 22:50
mvahoney the codewitch16-Jan-24 22:50 
GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
charlieg17-Jan-24 1:26
charlieg17-Jan-24 1:26 
GeneralRe: Where do you put your Visual Studio preprocessor directives? Pin
charlieg17-Jan-24 10:47
charlieg17-Jan-24 10:47 
GeneralJava or Bot? Pin
Richard Andrew x6416-Jan-24 11:39
professionalRichard Andrew x6416-Jan-24 11:39 
GeneralRe: Java or Bot? Pin
k505416-Jan-24 11:58
mvek505416-Jan-24 11:58 
GeneralRe: Java or Bot? Pin
jeron116-Jan-24 12:24
jeron116-Jan-24 12:24 
GeneralRe: Java or Bot? Pin
Jeremy Falcon16-Jan-24 13:33
professionalJeremy Falcon16-Jan-24 13:33 
GeneralRe: Java or Bot? Pin
Richard Andrew x6416-Jan-24 14:16
professionalRichard Andrew x6416-Jan-24 14:16 
GeneralRe: Java or Bot? Pin
Gerry Schmitz16-Jan-24 15:44
mveGerry Schmitz16-Jan-24 15:44 
GeneralRe: Java or Bot? Pin
jschell17-Jan-24 4:44
jschell17-Jan-24 4:44 
RantI'm cursed. Pin
Maximilien16-Jan-24 11:13
Maximilien16-Jan-24 11:13 
GeneralRe: I'm cursed. Pin
MarkTJohnson16-Jan-24 11:58
professionalMarkTJohnson16-Jan-24 11:58 
GeneralRe: I'm cursed. PinPopular
Gary R. Wheeler16-Jan-24 13:33
Gary R. Wheeler16-Jan-24 13:33 
GeneralRe: I'm cursed. Pin
GuyThiebaut16-Jan-24 19:05
professionalGuyThiebaut16-Jan-24 19:05 

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.