Click here to Skip to main content
15,885,768 members
Home / Discussions / C#
   

C#

 
AnswerRe: C #define to C# constant converstion tool Pin
saurabh sahay11-Jun-09 5:24
saurabh sahay11-Jun-09 5:24 
AnswerRe: C #define to C# constant converstion tool Pin
PIEBALDconsult11-Jun-09 6:22
mvePIEBALDconsult11-Jun-09 6:22 
GeneralRe: C #define to C# constant converstion tool Pin
mbender11-Jun-09 7:07
mbender11-Jun-09 7:07 
GeneralRe: C #define to C# constant converstion tool Pin
PIEBALDconsult11-Jun-09 7:33
mvePIEBALDconsult11-Jun-09 7:33 
GeneralRe: C #define to C# constant converstion tool Pin
mbender11-Jun-09 7:40
mbender11-Jun-09 7:40 
GeneralRe: C #define to C# constant converstion tool [modified] Pin
PIEBALDconsult11-Jun-09 8:24
mvePIEBALDconsult11-Jun-09 8:24 
GeneralRe: C #define to C# constant converstion tool Pin
mbender16-Jun-09 7:02
mbender16-Jun-09 7:02 
AnswerRe: C #define to C# constant converstion tool Pin
Rob Philpott11-Jun-09 6:27
Rob Philpott11-Jun-09 6:27 
Yeah, tricky. Interesting problem too. I guess you're right, have a prebuild step which parses the #defines and spits out constant integers. I know of no such tool, but should be easy to write yourself.

I've got some vague recollection that .NET doesn't stash constant integers in metadata but resolves them to numbers during main compilation. If this is correct, if your constants are used outside the assembly they're defined in, you'd need to rebuild that assembly as well. Just replacing the one assembly don't work. Perhaps someone here could confirm that or tell me I dreamt it.

Regards,
Rob Philpott.

QuestionMultiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 4:44
Mustafa Ismail Mustafa11-Jun-09 4:44 
AnswerRe: Multiple Default buttons on a form dependant on the situation Pin
0x3c011-Jun-09 4:55
0x3c011-Jun-09 4:55 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 6:13
Mustafa Ismail Mustafa11-Jun-09 6:13 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Henry Minute11-Jun-09 6:18
Henry Minute11-Jun-09 6:18 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 6:24
Mustafa Ismail Mustafa11-Jun-09 6:24 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Henry Minute11-Jun-09 6:30
Henry Minute11-Jun-09 6:30 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 6:36
Mustafa Ismail Mustafa11-Jun-09 6:36 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
0x3c011-Jun-09 6:25
0x3c011-Jun-09 6:25 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 6:30
Mustafa Ismail Mustafa11-Jun-09 6:30 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
0x3c011-Jun-09 6:35
0x3c011-Jun-09 6:35 
AnswerRe: Multiple Default buttons on a form dependant on the situation Pin
S. Senthil Kumar11-Jun-09 7:38
S. Senthil Kumar11-Jun-09 7:38 
Questionxp sidebar in .net2005 Pin
gadeypavan11-Jun-09 4:32
gadeypavan11-Jun-09 4:32 
AnswerRe: xp sidebar in .net2005 Pin
soloforce11-Jun-09 4:34
soloforce11-Jun-09 4:34 
GeneralRe: xp sidebar in .net2005 Pin
gadeypavan11-Jun-09 4:42
gadeypavan11-Jun-09 4:42 
GeneralRe: xp sidebar in .net2005 Pin
Manas Bhardwaj11-Jun-09 5:11
professionalManas Bhardwaj11-Jun-09 5:11 
GeneralRe: xp sidebar in .net2005 Pin
Dave Kreskowiak11-Jun-09 5:25
mveDave Kreskowiak11-Jun-09 5:25 
GeneralRe: xp sidebar in .net2005 Pin
EliottA11-Jun-09 5:46
EliottA11-Jun-09 5:46 

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.