Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuestions about defining a funciton Pin
nachilau18-Mar-04 8:48
nachilau18-Mar-04 8:48 
GeneralRe: Questions about defining a funciton Pin
toxcct18-Mar-04 9:01
toxcct18-Mar-04 9:01 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 9:18
nachilau18-Mar-04 9:18 
GeneralRe: Questions about defining a funciton Pin
Alexander M.,18-Mar-04 9:24
Alexander M.,18-Mar-04 9:24 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 10:26
nachilau18-Mar-04 10:26 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:11
David Crow18-Mar-04 9:11 
GeneralRe: Questions about defining a funciton Pin
nachilau18-Mar-04 9:23
nachilau18-Mar-04 9:23 
GeneralRe: Questions about defining a funciton Pin
David Crow18-Mar-04 9:31
David Crow18-Mar-04 9:31 
So doesn't it make more sense to continue that thread rather than creating a new one of the same topic?

In any case, MSDN has this to say about const:

When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable. When following a member function's parameter list, the const keyword specifies that the function doesn't modify the object for which it is invoked.

With C++, const is often used in place of the #define preprocessor directive. Values defined with const are subject to type checking, and can be used in place of constant expressions.

When const is used with pointers, it specifies that the pointer cannot be modified after initialization; the pointer is protected from modification thereafter.


So, const char *cpch means that the object pointed to by the pointer is const. And, char *const pchc means that the value of the pointer — the actual address stored in the pointer — is const.


"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)


GeneralRe: Questions about defining a funciton Pin
Michael Dunn18-Mar-04 15:01
sitebuilderMichael Dunn18-Mar-04 15:01 
GeneralHELP! .dbf header problem Pin
BlackDice18-Mar-04 7:15
BlackDice18-Mar-04 7:15 
GeneralEditbox unicode solved Pin
Demian Panello18-Mar-04 7:06
Demian Panello18-Mar-04 7:06 
GeneralCircular dependency Pin
bisquic18-Mar-04 6:58
bisquic18-Mar-04 6:58 
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:08
Maximilien18-Mar-04 7:08 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:18
bisquic18-Mar-04 7:18 
GeneralRe: Circular dependency Pin
jmkhael18-Mar-04 7:23
jmkhael18-Mar-04 7:23 
GeneralRe: Circular dependency Pin
Maximilien18-Mar-04 7:28
Maximilien18-Mar-04 7:28 
GeneralRe: Circular dependency Pin
bisquic18-Mar-04 7:37
bisquic18-Mar-04 7:37 
GeneralRe: Circular dependency Pin
Ian Darling18-Mar-04 23:06
Ian Darling18-Mar-04 23:06 
GeneralEditBox Unicode Pin
Demian Panello18-Mar-04 6:40
Demian Panello18-Mar-04 6:40 
GeneralRe: EditBox Unicode Pin
Alexander M.,18-Mar-04 9:16
Alexander M.,18-Mar-04 9:16 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:28
Prakash Nadar18-Mar-04 14:28 
GeneralRe: EditBox Unicode Pin
Prakash Nadar18-Mar-04 14:32
Prakash Nadar18-Mar-04 14:32 
Questionhow to represent a dynamic graph layout with c++??? Pin
rockrox8018-Mar-04 6:38
rockrox8018-Mar-04 6:38 
AnswerRe: how to represent a dynamic graph layout with c++??? Pin
Prakash Nadar18-Mar-04 14:26
Prakash Nadar18-Mar-04 14:26 
Questionhow to check a radio box Pin
Deepak Samuel18-Mar-04 6:07
Deepak Samuel18-Mar-04 6:07 

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.