Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralRe: 0 result with double data type Pin
Serge Lobko-Lobanovsky15-Jun-04 1:34
Serge Lobko-Lobanovsky15-Jun-04 1:34 
GeneralRe: 0 result with double data type Pin
myNameIsRon15-Jun-04 20:08
myNameIsRon15-Jun-04 20:08 
GeneralRe: 0 result with double data type Pin
Serge Lobko-Lobanovsky15-Jun-04 21:20
Serge Lobko-Lobanovsky15-Jun-04 21:20 
GeneralC# Application is Error Pin
GuruVN14-Jun-04 17:15
GuruVN14-Jun-04 17:15 
Generalusing winuser.h Pin
eggie514-Jun-04 16:09
eggie514-Jun-04 16:09 
GeneralRe: using winuser.h Pin
Mazdak14-Jun-04 19:49
Mazdak14-Jun-04 19:49 
GeneralRe: using winuser.h Pin
eggie514-Jun-04 19:59
eggie514-Jun-04 19:59 
GeneralRe: using winuser.h Pin
Heath Stewart15-Jun-04 2:45
protectorHeath Stewart15-Jun-04 2:45 
You should actually declare them as consts. When it comes down to it, that's all they really are in C/C++ - constants. Since they're pre-proc definitions, they can't be changed by code. The value is actually inserted.

When you declare them as consts, the value is actually used as well. Those values will never change, and using consts is faster.

You can also use enums, which is another common way (but often requires casting to an int or something). The values of the enum are also used in place of a reference (they're value types).

That's just the way it is.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: using winuser.h Pin
eggie515-Jun-04 5:55
eggie515-Jun-04 5:55 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 2:52
mveDave Kreskowiak15-Jun-04 2:52 
GeneralRe: using winuser.h Pin
eggie515-Jun-04 5:53
eggie515-Jun-04 5:53 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 14:49
mveDave Kreskowiak15-Jun-04 14:49 
GeneralAdding .wmf to an RTF file... Pin
sachinkalse14-Jun-04 14:54
sachinkalse14-Jun-04 14:54 
GeneralRe: Adding .wmf to an RTF file... Pin
Heath Stewart15-Jun-04 2:42
protectorHeath Stewart15-Jun-04 2:42 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse15-Jun-04 15:06
sachinkalse15-Jun-04 15:06 
GeneralRe: Adding .wmf to an RTF file... Pin
Heath Stewart16-Jun-04 3:09
protectorHeath Stewart16-Jun-04 3:09 
GeneralRe: Adding .wmf to an RTF file... Pin
sachinkalse16-Jun-04 14:45
sachinkalse16-Jun-04 14:45 
GeneralThree classes Pin
IamADotNetGuy14-Jun-04 12:08
IamADotNetGuy14-Jun-04 12:08 
GeneralRe: Three classes Pin
Daniel Turini14-Jun-04 12:26
Daniel Turini14-Jun-04 12:26 
GeneralRe: Three classes Pin
Steven Campbell14-Jun-04 18:42
Steven Campbell14-Jun-04 18:42 
GeneralProbability library Pin
machocr14-Jun-04 12:07
machocr14-Jun-04 12:07 
GeneralRe: Probability library Pin
Stefan Troschuetz14-Jun-04 21:42
Stefan Troschuetz14-Jun-04 21:42 
GeneralRe: Probability library Pin
machocr18-Jun-04 5:15
machocr18-Jun-04 5:15 
GeneralRe: Probability library Pin
Stefan Troschuetz18-Jun-04 5:24
Stefan Troschuetz18-Jun-04 5:24 
GeneralOT: Hello Pin
ChasP14-Jun-04 11:26
ChasP14-Jun-04 11:26 

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.