Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Open string in edit control with another software Pin
Akt_4_U13-Sep-06 2:06
Akt_4_U13-Sep-06 2:06 
GeneralRe: Open string in edit control with another software Pin
Max++13-Sep-06 2:25
Max++13-Sep-06 2:25 
GeneralRe: Open string in edit control with another software Pin
David Crow13-Sep-06 4:36
David Crow13-Sep-06 4:36 
AnswerRe: Open string in edit control with another software Pin
sujtha13-Sep-06 2:25
sujtha13-Sep-06 2:25 
AnswerRe: Open string in edit control with another software Pin
Hamid_RT13-Sep-06 2:42
Hamid_RT13-Sep-06 2:42 
QuestionCompiler error writing an STL-like algorithm Pin
No Fun Alex13-Sep-06 1:55
No Fun Alex13-Sep-06 1:55 
AnswerRe: Compiler error writing an STL-like algorithm Pin
Stephen Hewitt13-Sep-06 15:37
Stephen Hewitt13-Sep-06 15:37 
QuestionC++ calling member functions statically Pin
Matthew Bache13-Sep-06 1:23
Matthew Bache13-Sep-06 1:23 
Naive programmer question time...
I'm reviewing some old code (not mine) for my employer and have found that some member functions are being called statically. Is this good practice? Is there any benefit to calling member functions statically? Example code structure as below.
<br />
class MyClass {<br />
 //...<br />
public:<br />
 void fn2() {//...}<br />
 void fn1() {MyClass::fn2();} // why not just fn2() ?<br />
};<br />

Is there a reason/benefit why fn2() gets called statically? Both fn1 and fn2 alter the calling object. Neither fn affects any static class data. MyClass is not invloved in any inheritance.


Matt

AnswerRe: C++ calling member functions statically Pin
Steve S13-Sep-06 1:34
Steve S13-Sep-06 1:34 
GeneralRe: C++ calling member functions statically Pin
Matthew Bache13-Sep-06 2:15
Matthew Bache13-Sep-06 2:15 
QuestionDatabase question ! Pin
Bravoone_200613-Sep-06 1:00
Bravoone_200613-Sep-06 1:00 
QuestionRe: Database question ! Pin
Hamid_RT13-Sep-06 1:28
Hamid_RT13-Sep-06 1:28 
JokeRe: Database question ! Pin
toxcct13-Sep-06 1:47
toxcct13-Sep-06 1:47 
JokeRe: Database question ! Pin
Hamid_RT13-Sep-06 2:19
Hamid_RT13-Sep-06 2:19 
JokeRe: Database question ! Pin
toxcct13-Sep-06 2:03
toxcct13-Sep-06 2:03 
AnswerRe: Database question ! Pin
sujtha13-Sep-06 2:19
sujtha13-Sep-06 2:19 
QuestionDataGrid Change size of colum Pin
NorGUI13-Sep-06 0:59
NorGUI13-Sep-06 0:59 
AnswerRe: DataGrid Change size of colum Pin
sujtha13-Sep-06 2:11
sujtha13-Sep-06 2:11 
GeneralRe: DataGrid Change size of colum Pin
NorGUI13-Sep-06 8:24
NorGUI13-Sep-06 8:24 
Questionedit control Pin
kumar_mk13-Sep-06 0:44
kumar_mk13-Sep-06 0:44 
AnswerRe: edit control Pin
Nishad S13-Sep-06 0:53
Nishad S13-Sep-06 0:53 
AnswerRe: edit control Pin
Akt_4_U13-Sep-06 1:41
Akt_4_U13-Sep-06 1:41 
GeneralRe: edit control Pin
kumar_mk13-Sep-06 2:12
kumar_mk13-Sep-06 2:12 
QuestionCMenu - Menu appears as a narrow bar Pin
kk_vp13-Sep-06 0:33
kk_vp13-Sep-06 0:33 
AnswerRe: CMenu - Menu appears as a narrow bar Pin
Naveen13-Sep-06 0:49
Naveen13-Sep-06 0:49 

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.