Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parsing a CString. Pin
santhoshv843-Sep-08 20:15
santhoshv843-Sep-08 20:15 
GeneralRe: Parsing a CString. Pin
phanindra varma3-Sep-08 21:04
phanindra varma3-Sep-08 21:04 
GeneralRe: Parsing a CString. Pin
toxcct3-Sep-08 21:26
toxcct3-Sep-08 21:26 
QuestionDialog showing in the main Dialog like eMule. Pin
fantasy12153-Sep-08 17:21
fantasy12153-Sep-08 17:21 
AnswerRe: Dialog showing in the main Dialog like eMule. Pin
enhzflep3-Sep-08 17:26
enhzflep3-Sep-08 17:26 
QuestionRe: Dialog showing in the main Dialog like eMule. Pin
fantasy12153-Sep-08 17:50
fantasy12153-Sep-08 17:50 
Questionoverload function question [modified] Pin
followait3-Sep-08 15:46
followait3-Sep-08 15:46 
AnswerRe: override question Pin
Mark Salsbery3-Sep-08 16:52
Mark Salsbery3-Sep-08 16:52 
That's an overloaded function, not an override.

C++ doesn't allow overloads that only differ by return
type, but it does allow overloads that differ by const.

Which one gets used depends on the context of the call.

For example, if you have a const reference/pointer to an
array and you call GetAt(), it will use the const function
overload, which wil return a const reference. Since the returned
reference is constant, you can't modify the object or call any methods
that modify the object, which preserves the const state of the array
referenced or pointed to by the original const array reference/pointer.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: override question Pin
followait3-Sep-08 17:47
followait3-Sep-08 17:47 
QuestionRe SHFileOperation Pin
Bram van Kampen3-Sep-08 12:01
Bram van Kampen3-Sep-08 12:01 
AnswerRe: Re SHFileOperation Pin
Garth J Lancaster3-Sep-08 12:38
professionalGarth J Lancaster3-Sep-08 12:38 
GeneralRe: Re SHFileOperation Pin
Bram van Kampen3-Sep-08 13:49
Bram van Kampen3-Sep-08 13:49 
QuestionModeless dialog - How do I (clear the contents of an edit box) Pin
simon alec smith3-Sep-08 10:59
simon alec smith3-Sep-08 10:59 
AnswerRe: Modeless dialog - How do I (clear the contents of an edit box) Pin
Bram van Kampen3-Sep-08 12:06
Bram van Kampen3-Sep-08 12:06 
GeneralRe: Modeless dialog - How do I (clear the contents of an edit box) Pin
simon alec smith3-Sep-08 12:54
simon alec smith3-Sep-08 12:54 
QuestionHTMLHelp on x64, linking Pin
Chris Losinger3-Sep-08 10:00
professionalChris Losinger3-Sep-08 10:00 
GeneralRe: HTMLHelp on x64, linking Pin
Perspx3-Sep-08 10:04
Perspx3-Sep-08 10:04 
GeneralRe: HTMLHelp on x64, linking Pin
Chris Losinger3-Sep-08 10:09
professionalChris Losinger3-Sep-08 10:09 
Questionfastest way to look up a string Pin
Jim Crafton3-Sep-08 9:05
Jim Crafton3-Sep-08 9:05 
AnswerRe: fastest way to look up a string Pin
Nemanja Trifunovic3-Sep-08 9:37
Nemanja Trifunovic3-Sep-08 9:37 
QuestionGetting VID and PID from device using UsbSer Pin
Roger Stoltz3-Sep-08 6:03
Roger Stoltz3-Sep-08 6:03 
QuestionSimple array-problem Pin
Joplinazz3-Sep-08 5:54
Joplinazz3-Sep-08 5:54 
AnswerRe: Simple array-problem Pin
toxcct3-Sep-08 6:05
toxcct3-Sep-08 6:05 
GeneralRe: Simple array-problem Pin
Joplinazz3-Sep-08 6:11
Joplinazz3-Sep-08 6:11 
GeneralRe: Simple array-problem Pin
toxcct3-Sep-08 6:24
toxcct3-Sep-08 6: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.