Click here to Skip to main content
15,891,863 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: YASAQ Yet another silly academic question - how does "code optimization" really works? Pin
Mike Nordell2-Feb-15 10:31
Mike Nordell2-Feb-15 10:31 
QuestionDetours : how to hook QT applications ? Pin
jeff614-Jan-15 23:56
jeff614-Jan-15 23:56 
AnswerRe: Detours : how to hook QT applications ? Pin
Daniel Pfeffer15-Jan-15 0:25
professionalDaniel Pfeffer15-Jan-15 0:25 
I haven't used Detours in a few years, but offhand I can think of a few problems with hooking Qt class methods.

The first problem is the ABI (Application Binary Interface) used by Qt. This differs from the ABI used by Windows APIs or by COM objects, and in fact can (and does) vary between compiler implementations.

The second problem is the C++ name mangling - there is no standard way of mangling names. You would have research the exported name (which might be something like QPushButton$event$QEventP$bool and might be something totally different), and do this for every function that you wish to intercept. Again, this depends on the compiler used to compile Qt.

Can you give us some idea of the problem you are trying to solve? Perhaps there is a better way to do this.
GeneralRe: Detours : how to hook QT applications ? Pin
jeff615-Jan-15 0:46
jeff615-Jan-15 0:46 
GeneralRe: Detours : how to hook QT applications ? Pin
Daniel Pfeffer15-Jan-15 2:17
professionalDaniel Pfeffer15-Jan-15 2:17 
GeneralRe: Detours : how to hook QT applications ? Pin
jeff617-Jan-15 6:14
jeff617-Jan-15 6:14 
GeneralRe: Detours : how to hook QT applications ? Pin
Andy You15-May-22 2:41
Andy You15-May-22 2:41 
QuestionChange scrollbar style Pin
_Flaviu14-Jan-15 9:05
_Flaviu14-Jan-15 9:05 
AnswerRe: Change scrollbar style Pin
CPallini14-Jan-15 10:07
mveCPallini14-Jan-15 10:07 
GeneralRe: Change scrollbar style Pin
jeron114-Jan-15 10:24
jeron114-Jan-15 10:24 
GeneralRe: Change scrollbar style Pin
enhzflep14-Jan-15 14:10
enhzflep14-Jan-15 14:10 
GeneralRe: Change scrollbar style Pin
_Flaviu14-Jan-15 20:16
_Flaviu14-Jan-15 20:16 
QuestionBest way to get a program to send emails Pin
Anorexic Tribble11-Jan-15 11:44
Anorexic Tribble11-Jan-15 11:44 
AnswerRe: Best way to get a program to send emails Pin
Richard Andrew x6411-Jan-15 12:09
professionalRichard Andrew x6411-Jan-15 12:09 
AnswerRe: Best way to get a program to send emails Pin
CPallini11-Jan-15 21:48
mveCPallini11-Jan-15 21:48 
GeneralRe: Best way to get a program to send emails Pin
Anorexic Tribble12-Jan-15 3:48
Anorexic Tribble12-Jan-15 3:48 
GeneralRe: Best way to get a program to send emails Pin
enhzflep12-Jan-15 4:24
enhzflep12-Jan-15 4:24 
JokeRe: Best way to get a program to send emails Pin
jeron112-Jan-15 4:55
jeron112-Jan-15 4:55 
GeneralRe: Best way to get a program to send emails Pin
enhzflep12-Jan-15 4:59
enhzflep12-Jan-15 4:59 
GeneralRe: Best way to get a program to send emails Pin
David Crow12-Jan-15 5:12
David Crow12-Jan-15 5:12 
GeneralRe: Best way to get a program to send emails Pin
enhzflep13-Jan-15 9:01
enhzflep13-Jan-15 9:01 
GeneralRe: Best way to get a program to send emails Pin
CPallini12-Jan-15 5:04
mveCPallini12-Jan-15 5:04 
AnswerRe: Best way to get a program to send emails Pin
Dar Brett12-Jan-15 5:31
Dar Brett12-Jan-15 5:31 
AnswerRe: Best way to get a program to send emails Pin
Richard MacCutchan12-Jan-15 6:15
mveRichard MacCutchan12-Jan-15 6:15 
AnswerRe: Best way to get a program to send emails Pin
Michael Haephrati19-Jan-15 10:36
professionalMichael Haephrati19-Jan-15 10:36 

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.