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

C / C++ / MFC

 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
Prakash Nadar4-Mar-04 23:36
Prakash Nadar4-Mar-04 23:36 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
schaereran@gmx.net4-Mar-04 23:48
schaereran@gmx.net4-Mar-04 23:48 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
Robert A. T. Káldy5-Mar-04 0:11
Robert A. T. Káldy5-Mar-04 0:11 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
Prakash Nadar5-Mar-04 0:41
Prakash Nadar5-Mar-04 0:41 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
schaereran@gmx.net5-Mar-04 1:36
schaereran@gmx.net5-Mar-04 1:36 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
Prakash Nadar5-Mar-04 0:43
Prakash Nadar5-Mar-04 0:43 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
schaereran@gmx.net5-Mar-04 2:16
schaereran@gmx.net5-Mar-04 2:16 
GeneralRe: technique for assure, that a function is overwritten in c++?? Pin
S van Leent5-Mar-04 10:17
S van Leent5-Mar-04 10:17 
Maybe some light.

Any function has its start address. So you can check whether the start address of the function in the derived class is the same as the address of the function in the super class itself. If so, you could fault on runtime.

It has some difficulties, and some knowledge of vtables seem to be handy here, but I think it is in the direction you should be thinking.

LPCTSTR Dutch = TEXT("Double Dutch Smile | :) ");
AnswerRe: technique for assure, that a function is overwritten in c++?? Pin
Joe Woodbury6-Mar-04 11:57
professionalJoe Woodbury6-Mar-04 11:57 
GeneralDetect Debug Exes Pin
tojamismis4-Mar-04 21:34
tojamismis4-Mar-04 21:34 
GeneralRe: Detect Debug Exes Pin
Prakash Nadar4-Mar-04 21:59
Prakash Nadar4-Mar-04 21:59 
GeneralRe: Detect Debug Exes Pin
bilal789-Mar-04 18:01
bilal789-Mar-04 18:01 
GeneralMessages from the service control manager Pin
JensB4-Mar-04 21:23
JensB4-Mar-04 21:23 
GeneralHINSTANCE inst = AfxGetInstanceHandle(); Pin
akirachen4-Mar-04 21:22
akirachen4-Mar-04 21:22 
GeneralRe: HINSTANCE inst = AfxGetInstanceHandle(); Pin
Iain Clarke, Warrior Programmer5-Mar-04 3:28
Iain Clarke, Warrior Programmer5-Mar-04 3:28 
QuestionHow to change the account type of current logged on user thru my application? Pin
.NetRams4-Mar-04 20:35
.NetRams4-Mar-04 20:35 
AnswerRe: How to change the account type of current logged on user thru my application? Pin
Mazdak4-Mar-04 21:09
Mazdak4-Mar-04 21:09 
GeneralRe: How to change the account type of current logged on user thru my application? Pin
.NetRams5-Mar-04 1:12
.NetRams5-Mar-04 1:12 
GeneralRe: How to change the account type of current logged on user thru my application? Pin
Steve S7-Mar-04 22:42
Steve S7-Mar-04 22:42 
GeneralMultiple Controls One Handler Pin
monrobot134-Mar-04 20:28
monrobot134-Mar-04 20:28 
GeneralRe: Multiple Controls One Handler Pin
Michael Dunn4-Mar-04 20:54
sitebuilderMichael Dunn4-Mar-04 20:54 
GeneralRe: Multiple Controls One Handler Pin
monrobot135-Mar-04 6:04
monrobot135-Mar-04 6:04 
GeneralRe: Multiple Controls One Handler Pin
Robert A. T. Káldy4-Mar-04 22:30
Robert A. T. Káldy4-Mar-04 22:30 
GeneralRe: Multiple Controls One Handler Pin
monrobot135-Mar-04 6:06
monrobot135-Mar-04 6:06 
GeneralRe: Multiple Controls One Handler Pin
James R. Twine5-Mar-04 7:26
James R. Twine5-Mar-04 7:26 

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.