Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with realloc - heap corruption Pin
nadiric7-Sep-06 7:22
nadiric7-Sep-06 7:22 
GeneralRe: Problems with realloc - heap corruption Pin
Jun Du7-Sep-06 7:43
Jun Du7-Sep-06 7:43 
GeneralRe: Problems with realloc - heap corruption Pin
Zac Howland7-Sep-06 8:39
Zac Howland7-Sep-06 8:39 
AnswerRe: Problems with realloc - heap corruption Pin
Stephen Hewitt8-Sep-06 2:03
Stephen Hewitt8-Sep-06 2:03 
QuestionAnother impossible question Pin
Waldermort7-Sep-06 6:50
Waldermort7-Sep-06 6:50 
AnswerRe: Another impossible question Pin
JWood7-Sep-06 7:09
JWood7-Sep-06 7:09 
GeneralRe: Another impossible question Pin
Waldermort7-Sep-06 7:15
Waldermort7-Sep-06 7:15 
GeneralRe: Another impossible question [modified] Pin
Anonymuos7-Sep-06 11:38
Anonymuos7-Sep-06 11:38 
waldermort wrote:
hey thats a great idea, I will declare all of the class functions as private, that will stop those hackers from subclassing my class. One small drawback though, it won't work.


JWood's answer was too short. He probably meant something like:

class Base {
public:
   void doSomething() { // public non-virtual
      checkVar();
      doSomethingImp();
   }
private:
   virtual void doSomethingImp() {
   // ...
   }
};

class Derived : public Base {
public:

private:
   virtual void doSomethingImp() {
   // overrides Base::doSomethingImp()
   }
}


-- modified at 17:43 Thursday 7th September, 2006

see also: http://www.gotw.ca/publications/mill18.htm[^]
AnswerRe: Another impossible question Pin
Jun Du7-Sep-06 7:36
Jun Du7-Sep-06 7:36 
QuestionRe: Another impossible question Pin
Zac Howland7-Sep-06 8:50
Zac Howland7-Sep-06 8:50 
AnswerRe: Another impossible question Pin
Waldermort7-Sep-06 18:41
Waldermort7-Sep-06 18:41 
Questionpreprocessor directive Pin
Lord_Vader7-Sep-06 6:49
Lord_Vader7-Sep-06 6:49 
QuestionRe: preprocessor directive Pin
David Crow7-Sep-06 8:18
David Crow7-Sep-06 8:18 
AnswerRe: preprocessor directive Pin
Chris Losinger7-Sep-06 8:22
professionalChris Losinger7-Sep-06 8:22 
AnswerRe: preprocessor directive Pin
Hamid_RT8-Sep-06 7:28
Hamid_RT8-Sep-06 7:28 
QuestionMFC Toolbar handle Pin
ninolaroca7-Sep-06 6:05
ninolaroca7-Sep-06 6:05 
Questionwprintf failing me Pin
Waldermort7-Sep-06 5:33
Waldermort7-Sep-06 5:33 
AnswerRe: wprintf failing me Pin
Zac Howland7-Sep-06 5:50
Zac Howland7-Sep-06 5:50 
GeneralRe: wprintf failing me Pin
Waldermort7-Sep-06 5:56
Waldermort7-Sep-06 5:56 
GeneralRe: wprintf failing me Pin
Waldermort7-Sep-06 5:59
Waldermort7-Sep-06 5:59 
GeneralRe: wprintf failing me Pin
Zac Howland7-Sep-06 6:15
Zac Howland7-Sep-06 6:15 
GeneralRe: wprintf failing me Pin
Waldermort7-Sep-06 6:38
Waldermort7-Sep-06 6:38 
AnswerRe: wprintf failing me Pin
led mike7-Sep-06 5:59
led mike7-Sep-06 5:59 
Questiondelete files past a certain date Pin
si_697-Sep-06 4:18
si_697-Sep-06 4:18 
AnswerRe: delete files past a certain date Pin
led mike7-Sep-06 5:00
led mike7-Sep-06 5:00 

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.