Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to simulate a line function? Pin
Curtis Schlak.12-Jan-06 10:51
Curtis Schlak.12-Jan-06 10:51 
QuestionCompiling log4cpp or advice for a log api Pin
julian_ross12-Jan-06 8:03
julian_ross12-Jan-06 8:03 
AnswerRe: Compiling log4cpp or advice for a log api Pin
Chris Losinger12-Jan-06 8:39
professionalChris Losinger12-Jan-06 8:39 
GeneralRe: Compiling log4cpp or advice for a log api Pin
julian_ross12-Jan-06 8:50
julian_ross12-Jan-06 8:50 
GeneralRe: Compiling log4cpp or advice for a log api Pin
Bob Flynn12-Jan-06 9:56
Bob Flynn12-Jan-06 9:56 
GeneralRe: Compiling log4cpp or advice for a log api Pin
Julian_CT2K212-Jan-06 22:09
Julian_CT2K212-Jan-06 22:09 
GeneralRe: Compiling log4cpp or advice for a log api Pin
zildjohn0112-Jan-06 10:31
zildjohn0112-Jan-06 10:31 
QuestionTrouble with preprocessor logic Pin
Rob G12-Jan-06 7:56
Rob G12-Jan-06 7:56 
Am I misled in thinking that you can do basic logic operations in the preprocessor?

Here's what I'm trying to do: I have a defined constant that I want to check the value of. If that constant value is not what is expected, then I want the compiler to fail.

The purpose is to support previous versions of a program. So when the variable

const long CURRENT_FILE_VERSION = 0x00010005;<br />


changes, the compile fails and the programmer is reminded to update that section of code to convert older file versions to the current format. This is what I've tried:

#define VERSION_TEST 0x00010005 //supported version<br />
#if CURRENT_FILE_VERSION > VERSION_TEST<br />
	File version has changed, please add support for the old version here <br />
#endif



Is there any way to do something like this?

Thanks

-- modified at 14:09 Thursday 12th January, 2006
AnswerRe: Preprocessor logic Pin
Chris Losinger12-Jan-06 8:12
professionalChris Losinger12-Jan-06 8:12 
GeneralRe: Preprocessor logic Pin
Rob G12-Jan-06 8:34
Rob G12-Jan-06 8:34 
QuestionSource code for a notepad like application Pin
Giulio200012-Jan-06 7:41
Giulio200012-Jan-06 7:41 
AnswerRe: Source code for a notepad like application Pin
Nish Nishant12-Jan-06 7:46
sitebuilderNish Nishant12-Jan-06 7:46 
AnswerRe: Source code for a notepad like application Pin
ThatsAlok12-Jan-06 17:56
ThatsAlok12-Jan-06 17:56 
Questionbuilding a packet filtering-editing driver Pin
ozba12-Jan-06 7:23
ozba12-Jan-06 7:23 
AnswerRe: building a packet filtering-editing driver Pin
Alexander M.,13-Jan-06 6:16
Alexander M.,13-Jan-06 6:16 
QuestionProtection Error Debugger Detected Pin
mav@octaval12-Jan-06 7:16
mav@octaval12-Jan-06 7:16 
AnswerRe: Protection Error Debugger Detected Pin
Blake Miller12-Jan-06 9:01
Blake Miller12-Jan-06 9:01 
AnswerRe: Protection Error Debugger Detected Pin
Dave Midgley25-Feb-11 23:42
Dave Midgley25-Feb-11 23:42 
QuestionFunction implementation in header file creates linker warnings Pin
Harrier12-Jan-06 6:11
Harrier12-Jan-06 6:11 
AnswerRe: Function implementation in header file creates linker warnings Pin
Blake Miller12-Jan-06 6:33
Blake Miller12-Jan-06 6:33 
GeneralOT Pin
toxcct12-Jan-06 6:56
toxcct12-Jan-06 6:56 
GeneralRe: OT Pin
Owner drawn12-Jan-06 17:02
Owner drawn12-Jan-06 17:02 
GeneralRe: Function implementation in header file creates linker warnings Pin
Garth J Lancaster12-Jan-06 11:24
professionalGarth J Lancaster12-Jan-06 11:24 
GeneralRe: Function implementation in header file creates linker warnings Pin
Prakash Nadar12-Jan-06 17:39
Prakash Nadar12-Jan-06 17:39 
GeneralRe: Function implementation in header file creates linker warnings Pin
Garth J Lancaster12-Jan-06 17:43
professionalGarth J Lancaster12-Jan-06 17:43 

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.