Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: Handle for a child window? Pin
Stephane Rodriguez.7-May-03 20:00
Stephane Rodriguez.7-May-03 20:00 
AnswerRe: Handle for a child window? Pin
LongRange.Shooter9-May-03 10:44
LongRange.Shooter9-May-03 10:44 
QuestionC++ define statements == what in C#? Pin
dazinith7-May-03 9:38
dazinith7-May-03 9:38 
AnswerRe: C++ define statements == what in C#? Pin
RB@Emphasys7-May-03 9:45
RB@Emphasys7-May-03 9:45 
GeneralRe: C++ define statements == what in C#? Pin
dazinith7-May-03 9:54
dazinith7-May-03 9:54 
GeneralRe: C++ define statements == what in C#? Pin
leppie8-May-03 10:22
leppie8-May-03 10:22 
GeneralRe: C++ define statements == what in C#? Pin
Kevin McFarlane9-May-03 1:00
Kevin McFarlane9-May-03 1:00 
AnswerRe: C++ define statements == what in C#? Pin
Kevin McFarlane8-May-03 0:32
Kevin McFarlane8-May-03 0:32 
This is actually bad practice in C++. You should use const declarations instead.

const int DIALUP = 0;

or enums, as another poster has suggested.

The #define in C# is for conditional compilation. And it should be used like this in C++ also.

See, for example, Scott Meyers's "Effective C++"

Kevin
GeneralWindows.forms application Pin
viana7-May-03 8:19
viana7-May-03 8:19 
GeneralRe: Windows.forms application Pin
Stephane Rodriguez.7-May-03 8:43
Stephane Rodriguez.7-May-03 8:43 
GeneralRe: Windows.forms application Pin
RB@Emphasys7-May-03 8:45
RB@Emphasys7-May-03 8:45 
GeneralRe: Windows.forms application Pin
viana7-May-03 10:08
viana7-May-03 10:08 
GeneralRe: Windows.forms application Pin
RB@Emphasys7-May-03 10:17
RB@Emphasys7-May-03 10:17 
GeneralRe: Windows.forms application Pin
Adam Turner7-May-03 12:33
Adam Turner7-May-03 12:33 
GeneralRe: Windows.forms application Pin
viana7-May-03 22:10
viana7-May-03 22:10 
GeneralRe: Windows.forms application Pin
ctescu8-May-03 7:49
ctescu8-May-03 7:49 
GeneralSaving Images Pin
Steve McLenithan7-May-03 7:51
Steve McLenithan7-May-03 7:51 
GeneralRe: Saving Images Pin
Stephane Rodriguez.7-May-03 8:45
Stephane Rodriguez.7-May-03 8:45 
GeneralVC++ 6.0 && C# Pin
NHM7-May-03 6:57
NHM7-May-03 6:57 
GeneralRe: VC++ 6.0 && C# Pin
Stephane Rodriguez.7-May-03 8:35
Stephane Rodriguez.7-May-03 8:35 
GeneralRemoting Timeout Problem Pin
Manish K. Agarwal7-May-03 6:35
Manish K. Agarwal7-May-03 6:35 
GeneralRe: Remoting Timeout Problem Pin
Manish K. Agarwal7-May-03 17:08
Manish K. Agarwal7-May-03 17:08 
GeneralRe: Always Active Pin
Stephane Rodriguez.7-May-03 8:46
Stephane Rodriguez.7-May-03 8:46 
GeneralRe: Always Active Pin
Stephane Rodriguez.8-May-03 3:10
Stephane Rodriguez.8-May-03 3:10 
GeneralDisplay XML file and Embed control. Pin
tuan_tomy7-May-03 6:19
tuan_tomy7-May-03 6:19 

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.