Click here to Skip to main content
15,910,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Really Basic Data Type Questions Pin
Stu Pedful11-Dec-01 9:36
Stu Pedful11-Dec-01 9:36 
Thanks for the reply. I have a couple of followup questions though to help me clarify things.

Chris Losinger wrote:
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.

Isn't this normally true anyway (at least the first part) unless "extern" is used?

Chris Losinger wrote:
#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).

So, when would one use something like

#define CPUSTRING "Intel - x86"

versus

const char CPUSTRING[] = "Intel - x86";

? CPUSTRING is a const char in either case, right?
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 
GeneralRe: Changing dialog size Pin
Chris Losinger11-Dec-01 8:32
professionalChris Losinger11-Dec-01 8:32 

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.