Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:00
YaronNir1-Jul-03 2:00 
GeneralRe: convert SYSTEMTIME to string Pin
User 66581-Jul-03 2:08
User 66581-Jul-03 2:08 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:13
YaronNir1-Jul-03 2:13 
GeneralRe: convert SYSTEMTIME to string Pin
User 66581-Jul-03 2:17
User 66581-Jul-03 2:17 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:59
YaronNir1-Jul-03 2:59 
GeneralRe: convert SYSTEMTIME to string Pin
Joan M1-Jul-03 3:13
professionalJoan M1-Jul-03 3:13 
GeneralRe: convert SYSTEMTIME to string Pin
David Crow1-Jul-03 3:27
David Crow1-Jul-03 3:27 
GeneralRe: convert SYSTEMTIME to string Pin
basementman1-Jul-03 5:02
basementman1-Jul-03 5:02 
General24Bit BITMAP Pin
_crs_1-Jul-03 1:38
_crs_1-Jul-03 1:38 
GeneralRe: 24Bit BITMAP Pin
basementman1-Jul-03 5:13
basementman1-Jul-03 5:13 
GeneralRe: 24Bit BITMAP Pin
_crs_2-Jul-03 1:46
_crs_2-Jul-03 1:46 
GeneralVisual Studio file associations Pin
User 66581-Jul-03 1:36
User 66581-Jul-03 1:36 
GeneralRe: Visual Studio file associations Pin
Ryan Binns1-Jul-03 2:13
Ryan Binns1-Jul-03 2:13 
GeneralRe: Visual Studio file associations Pin
User 66581-Jul-03 2:20
User 66581-Jul-03 2:20 
GeneralRe: Visual Studio file associations Pin
Ryan Binns1-Jul-03 2:27
Ryan Binns1-Jul-03 2:27 
GeneralGetObjectsForNativeVariants Pin
vikramlinux1-Jul-03 1:26
vikramlinux1-Jul-03 1:26 
GeneralProblem with serialization. Pin
Svin1-Jul-03 1:13
Svin1-Jul-03 1:13 
GeneralRe: Problem with serialization. Pin
Nuehli1-Jul-03 1:43
Nuehli1-Jul-03 1:43 
GeneralRe: Problem with serialization. Pin
Svin1-Jul-03 2:20
Svin1-Jul-03 2:20 
GeneralRe: Problem with serialization. Pin
Nuehli1-Jul-03 2:44
Nuehli1-Jul-03 2:44 
GeneralRe: Problem with serialization. Pin
Svin1-Jul-03 2:56
Svin1-Jul-03 2:56 
QuestionHow to use multiple #if defined ? Pin
Bjarne Jørgensen1-Jul-03 0:53
Bjarne Jørgensen1-Jul-03 0:53 
AnswerRe: How to use multiple #if defined ? Pin
Ryan Binns1-Jul-03 2:19
Ryan Binns1-Jul-03 2:19 
to_be_unknown wrote:
#if (defined _STANDALONE && (defined _KA || defined _UDV)) || defined _OTN9

This is the correct syntax, and will work as you require. The original syntax that you used would work, but only if the defines had the value 0 or 1, or if they were not defined (the preprocessor assumes a definition to have the value 0 if it is not defined). If they had any other value, it would not work correctly.

The reason you were getting compiler errors was because the defined operator operates on an identifier, not on an expression.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: How to use multiple #if defined ? Pin
Bjarne Jørgensen1-Jul-03 2:40
Bjarne Jørgensen1-Jul-03 2:40 
GeneralRe: How to use multiple #if defined ? Pin
Ryan Binns1-Jul-03 3:25
Ryan Binns1-Jul-03 3:25 

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.