Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThrowing exceptions from COM components Pin
Uwe Keim11-Jul-05 22:27
sitebuilderUwe Keim11-Jul-05 22:27 
GeneralRe: Throwing exceptions from COM components Pin
Tim Smith12-Jul-05 3:53
Tim Smith12-Jul-05 3:53 
GeneralContinous Graph--Scrolling-----HEEELP Pin
Raza568011-Jul-05 22:05
Raza568011-Jul-05 22:05 
GeneralRe: Continous Graph--Scrolling-----HEEELP Pin
Cedric Moonen11-Jul-05 22:54
Cedric Moonen11-Jul-05 22:54 
GeneralPlease help me! Pin
dSolariuM11-Jul-05 21:04
dSolariuM11-Jul-05 21:04 
GeneralDifference b/w #define and const int Pin
wasife11-Jul-05 20:55
wasife11-Jul-05 20:55 
GeneralRe: Difference b/w #define and const int Pin
Cedric Moonen11-Jul-05 23:02
Cedric Moonen11-Jul-05 23:02 
GeneralRe: Difference b/w #define and const int Pin
toxcct12-Jul-05 1:26
toxcct12-Jul-05 1:26 
wasife wrote:
What is the difference between #define and const int

keep in mind that #define have never been const int. you can use such a preprocessor command to replace whatever you want in the code before compile time.

such statements are fully authorized :
#define ONE_FLOAT (2.3f)

#define MAX(x,y) ((x > y) ? x : y)


and to continue on what cedric said, as the preprocessor works befor the compilation, the compiler cannot make any check on a bad "const" use with a #define...



TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: Difference b/w #define and const int Pin
Bob Stanneveld12-Jul-05 3:16
Bob Stanneveld12-Jul-05 3:16 
GeneralRe: Difference b/w #define and const int Pin
Tim Smith12-Jul-05 3:56
Tim Smith12-Jul-05 3:56 
GeneralRe: Difference b/w #define and const int Pin
Bob Stanneveld12-Jul-05 20:36
Bob Stanneveld12-Jul-05 20:36 
GeneralBorland Support Pin
ditty grail11-Jul-05 20:47
ditty grail11-Jul-05 20:47 
GeneralPointer to const Pin
LiYS11-Jul-05 20:20
LiYS11-Jul-05 20:20 
GeneralRe: Pointer to const Pin
Bob Stanneveld11-Jul-05 20:34
Bob Stanneveld11-Jul-05 20:34 
GeneralRe: Pointer to const Pin
LiYS11-Jul-05 22:22
LiYS11-Jul-05 22:22 
GeneralRe: Pointer to const Pin
Bob Stanneveld11-Jul-05 22:27
Bob Stanneveld11-Jul-05 22:27 
GeneralRe: Pointer to const Pin
LiYS11-Jul-05 22:30
LiYS11-Jul-05 22:30 
GeneralRe: Pointer to const Pin
Nish Nishant11-Jul-05 20:36
sitebuilderNish Nishant11-Jul-05 20:36 
GeneralRe: Pointer to const Pin
MaxVampire8211-Jul-05 21:59
MaxVampire8211-Jul-05 21:59 
GeneralMy self install codes using startup folder - please comment Pin
awah11-Jul-05 18:39
awah11-Jul-05 18:39 
GeneralRe: My self install codes using startup folder - please comment Pin
Yulianto.11-Jul-05 19:20
Yulianto.11-Jul-05 19:20 
GeneralRe: My self install codes using startup folder - please comment Pin
David Crow12-Jul-05 3:15
David Crow12-Jul-05 3:15 
GeneralRe: My self install codes using startup folder - please comment Pin
awah12-Jul-05 17:11
awah12-Jul-05 17:11 
Generalopen file dialog Pin
Anonymous11-Jul-05 18:28
Anonymous11-Jul-05 18:28 
GeneralRe: open file dialog Pin
Christian Graus11-Jul-05 18:49
protectorChristian Graus11-Jul-05 18:49 

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.