Click here to Skip to main content
15,887,485 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
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 
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 
We have one symbol that may be defined in our project files: ENGINEERING. We have build configurations that define the symbol and can be used in source code for engineering-specific builds. These are used for experiments or prototyping logic before a production implementation. We avoid defining symbols in project files otherwise, since it's easy to lose a definition when changing configurations.

Our stdafx.h files #define conditional compilation values like WINVER and #include 'fixed' header files for the C++ runtime, MFC, and so on. These are files where using precompiled headers improve compile times. It will also #include a file that defines the application version and build number, software title, copyright and trademark statements, and so on. This ensures that every executable file, DLL or EXE, gets the same information in the version resource.

Conditional compilation symbols and manifest constants tend to be defined centrally. For a class, that's in the header file for the class. If the element is built from several classes in separate source files, they're in a separate header for the element. If a value is used throughout the project, it will typically be in stdafx.h.
Software Zen: delete this;

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 
GeneralRe: I'm cursed. Pin
Dave Kreskowiak17-Jan-24 3:48
mveDave Kreskowiak17-Jan-24 3:48 

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.