Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBitmap Stuff Pin
Mark Donkers11-Dec-01 9:19
Mark Donkers11-Dec-01 9:19 
GeneralRe: Bitmap Stuff Pin
Rick York11-Dec-01 9:53
mveRick York11-Dec-01 9:53 
GeneralRe: Bitmap Stuff Pin
Mark Donkers11-Dec-01 10:17
Mark Donkers11-Dec-01 10:17 
GeneralRe: Bitmap Stuff Pin
Rick York11-Dec-01 10:41
mveRick York11-Dec-01 10:41 
GeneralRe: Bitmap Stuff Pin
Ernest Laurentin11-Dec-01 10:57
Ernest Laurentin11-Dec-01 10:57 
GeneralRe: Bitmap Stuff Pin
Mark Donkers11-Dec-01 11:29
Mark Donkers11-Dec-01 11:29 
GeneralReally Basic Data Type Questions Pin
Stu Pedful11-Dec-01 8:23
Stu Pedful11-Dec-01 8:23 
GeneralRe: Really Basic Data Type Questions Pin
Chris Losinger11-Dec-01 8:41
professionalChris Losinger11-Dec-01 8:41 
'const' tells the compiler that you won't change the value. if you try to, the compiler will complain.

in C, static, when applied to variables means the item is only visible in the current module (source file) and that the value will persist between function calls.

when applied to functions, static means the function is only visible within the current module. in C++, static takes on the job of declaring member functions that can be used outside of an instance of the class ('extern' would've been a better word for this, IMO).

#define is a preprocessor thing, const is a compiler thing. #define is an alias for some text which the preprocessor will swap out before the compiler gets to it. const is just a way to make a variable 'constant' (an oxymoron).

-c



Smaller Animals Software, Inc.

GeneralRe: Really Basic Data Type Questions Pin
Stu Pedful11-Dec-01 9:36
Stu Pedful11-Dec-01 9:36 
GeneralRe: Really Basic Data Type Questions Pin
moliate11-Dec-01 21:13
moliate11-Dec-01 21:13 
GeneralThanks! Pin
Stu Pedful12-Dec-01 2:26
Stu Pedful12-Dec-01 2:26 
GeneralRe: Really Basic Data Type Questions Pin
Alvaro Mendez12-Dec-01 8:48
Alvaro Mendez12-Dec-01 8:48 
GeneralExtern Question Pin
Stu Pedful14-Dec-01 15:19
Stu Pedful14-Dec-01 15:19 
GeneralRe: Extern Question Pin
Alvaro Mendez16-Dec-01 11:36
Alvaro Mendez16-Dec-01 11:36 
GeneralMMC applications Pin
rk200011-Dec-01 8:04
rk200011-Dec-01 8:04 
GeneralRe: MMC applications Pin
Michael Dunn11-Dec-01 8:20
sitebuilderMichael Dunn11-Dec-01 8:20 
GeneralHelp :D Pin
RobJones11-Dec-01 6:55
RobJones11-Dec-01 6:55 
GeneralRe: Help :D Pin
Carlos Antollini11-Dec-01 7:11
Carlos Antollini11-Dec-01 7:11 
QuestionHow to delete a character in CRichEditView? Pin
davilism11-Dec-01 6:42
davilism11-Dec-01 6:42 
AnswerRe: How to delete a character in CRichEditView? Pin
Carlos Antollini11-Dec-01 7:17
Carlos Antollini11-Dec-01 7:17 
GeneralRe: How to delete a character in CRichEditView? Pin
davilism12-Dec-01 6:21
davilism12-Dec-01 6:21 
GeneralChanging dialog size Pin
Chris Losinger11-Dec-01 6:32
professionalChris Losinger11-Dec-01 6:32 
GeneralRe: Changing dialog size Pin
Carlos Antollini11-Dec-01 6:49
Carlos Antollini11-Dec-01 6:49 
GeneralRe: Changing dialog size Pin
Chris Losinger11-Dec-01 7:43
professionalChris Losinger11-Dec-01 7:43 
GeneralRe: Changing dialog size Pin
Carlos Antollini11-Dec-01 8:29
Carlos Antollini11-Dec-01 8:29 

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.