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

C / C++ / MFC

 
GeneralRe: const help Pin
Christian Graus30-Jan-03 18:13
protectorChristian Graus30-Jan-03 18:13 
GeneralRe: const help Pin
Chris Losinger30-Jan-03 18:17
professionalChris Losinger30-Jan-03 18:17 
GeneralRe: const help Pin
Christian Graus30-Jan-03 18:22
protectorChristian Graus30-Jan-03 18:22 
GeneralRe: const help Pin
Christian Graus30-Jan-03 18:11
protectorChristian Graus30-Jan-03 18:11 
GeneralRe: const help Pin
ROK_RShadow30-Jan-03 19:15
ROK_RShadow30-Jan-03 19:15 
GeneralRe: const help Pin
Christian Graus30-Jan-03 19:29
protectorChristian Graus30-Jan-03 19:29 
GeneralRe: const help Pin
ROK_RShadow30-Jan-03 19:36
ROK_RShadow30-Jan-03 19:36 
GeneralRe: const help Pin
Christian Graus30-Jan-03 19:55
protectorChristian Graus30-Jan-03 19:55 
How about

int * const pTemp = m_pInt;

so in the function you always access a const pointer ? I can't think of an iron clad solution, i.e. one that does not rely on the functions implimenter 'playing by the rules'. Unless I have external clients, I don't use const functions much at all, and if you declare it const and don't modify anything, then the fact that you could is immaterial, you made a contract with your classes clients and you kept it.


Christian

No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002


It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
GeneralRe: const help Pin
ROK_RShadow30-Jan-03 20:01
ROK_RShadow30-Jan-03 20:01 
GeneralRe: const help Pin
Taka Muraoka30-Jan-03 18:13
Taka Muraoka30-Jan-03 18:13 
GeneralRe: const help Pin
Mike Nordell30-Jan-03 20:41
Mike Nordell30-Jan-03 20:41 
GeneralFindWindow Pin
aguest30-Jan-03 14:56
aguest30-Jan-03 14:56 
GeneralRe: FindWindow Pin
Nick Parker30-Jan-03 16:32
protectorNick Parker30-Jan-03 16:32 
Generalneed encrypt and decrypt a fix length small block of data. Pin
Anonymous30-Jan-03 12:53
Anonymous30-Jan-03 12:53 
GeneralRe: need encrypt and decrypt a fix length small block of data. Pin
Chris Losinger30-Jan-03 13:19
professionalChris Losinger30-Jan-03 13:19 
GeneralRe: need encrypt and decrypt a fix length small block of data. Pin
karl_w30-Jan-03 21:00
karl_w30-Jan-03 21:00 
GeneralChanging user passwords Pin
Frank Deo30-Jan-03 12:18
Frank Deo30-Jan-03 12:18 
QuestionOverlapped IO or non overlapped? Pin
generic_user_id30-Jan-03 10:33
generic_user_id30-Jan-03 10:33 
AnswerRe: Overlapped IO or non overlapped? Pin
Colin Urquhart30-Jan-03 13:30
Colin Urquhart30-Jan-03 13:30 
GeneralRe: Overlapped IO or non overlapped? Pin
generic_user_id30-Jan-03 20:21
generic_user_id30-Jan-03 20:21 
GeneralRe: Overlapped IO or non overlapped? Pin
Colin Urquhart2-Feb-03 12:31
Colin Urquhart2-Feb-03 12:31 
GeneralCorrupted Pin
MemLeak30-Jan-03 10:07
MemLeak30-Jan-03 10:07 
GeneralProblem with CStdioFile::Open Pin
garaone30-Jan-03 9:54
garaone30-Jan-03 9:54 
GeneralRe: Problem with CStdioFile::Open Pin
Chris Losinger30-Jan-03 10:15
professionalChris Losinger30-Jan-03 10:15 
GeneralRe: Problem with CStdioFile::Open Pin
garaone30-Jan-03 10:24
garaone30-Jan-03 10:24 

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.