Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OnDraw() not getting called Pin
Alan Balkany18-Nov-08 3:44
Alan Balkany18-Nov-08 3:44 
QuestionUsing GetDevice function of IPortableDeviceManager interface... Pin
VCProgrammer17-Nov-08 21:24
VCProgrammer17-Nov-08 21:24 
QuestionFirst row missing when i write into a file using fputws Pin
bangaram201217-Nov-08 20:52
bangaram201217-Nov-08 20:52 
AnswerRe: First row missing when i write into a file using fputws Pin
Saurabh.Garg17-Nov-08 23:07
Saurabh.Garg17-Nov-08 23:07 
GeneralRe: First row missing when i write into a file using fputws Pin
bangaram201217-Nov-08 23:35
bangaram201217-Nov-08 23:35 
GeneralRe: First row missing when i write into a file using fputws Pin
Saurabh.Garg18-Nov-08 0:57
Saurabh.Garg18-Nov-08 0:57 
AnswerRe: First row missing when i write into a file using fputws Pin
David Crow18-Nov-08 3:47
David Crow18-Nov-08 3:47 
QuestionNeed Help with Hooking and dll injection Pin
mr_coco17-Nov-08 19:49
mr_coco17-Nov-08 19:49 
Hi,

Id like to be able to intercept the output of some of the basic
windows drawing functions and record it somewhere. In particular drawtext.

Ive read that this can be achived by CBT hooking.
Despite reading several articals including the ones on this site im totally confused.

In my mind I image the process should work like this ...

I write a function call mydrawtext which takes in the same parameters as drawtext.
Writes the incomming info to a file and then calles the real drawtext.

I store it in mydrawtext.dll file and then compile it into a mydrawtext.lib

Next ...
I write a small .exe which when exectued figues out where the real drawtext function lives in memory
places a copy of mydrawtext.lib into the same address space
and then writes a few intructions to the location of the real drawtext fuction so that all calls to it are diverted to mydrawtext.

All the examples ive seen are totally confusing. Injecting insructions are inside the .dll. I cant work out whats going on ?

What would be really great is dead simple abc example of something like how to capture the input/output of the windows drawtext function.


Thanks,

Mark.
QuestionContext menu Pin
john563217-Nov-08 19:22
john563217-Nov-08 19:22 
AnswerRe: Context menu Pin
SandipG 17-Nov-08 19:54
SandipG 17-Nov-08 19:54 
Questionworker thread problem in mfc Pin
Rajesh Katalkar17-Nov-08 19:18
Rajesh Katalkar17-Nov-08 19:18 
AnswerRe: worker thread problem in mfc Pin
SandipG 17-Nov-08 19:56
SandipG 17-Nov-08 19:56 
Questionc1010070:failed to load and parse the manifest Pin
izyani17-Nov-08 19:14
izyani17-Nov-08 19:14 
QuestionRe: c1010070:failed to load and parse the manifest Pin
David Crow12-Oct-09 2:48
David Crow12-Oct-09 2:48 
QuestionHooking DB Exceptions Pin
krishnan.s17-Nov-08 17:14
krishnan.s17-Nov-08 17:14 
AnswerRe: Hooking DB Exceptions Pin
22491717-Nov-08 19:39
22491717-Nov-08 19:39 
QuestionProgram startup delay in Vista Pin
LaHaHa17-Nov-08 15:17
LaHaHa17-Nov-08 15:17 
QuestionRe: Program startup delay in Vista Pin
David Crow17-Nov-08 16:51
David Crow17-Nov-08 16:51 
AnswerRe: Program startup delay in Vista Pin
LaHaHa17-Nov-08 21:45
LaHaHa17-Nov-08 21:45 
Questiondissertation coding...converting c++ to java...what does this line do? Pin
c#_keithy17-Nov-08 11:37
c#_keithy17-Nov-08 11:37 
AnswerRe: dissertation coding...converting c++ to java...what does this line do? Pin
PJ Arends17-Nov-08 11:52
professionalPJ Arends17-Nov-08 11:52 
GeneralRe: dissertation coding...converting c++ to java...what does this line do? Pin
c#_keithy17-Nov-08 12:01
c#_keithy17-Nov-08 12:01 
GeneralRe: dissertation coding...converting c++ to java...what does this line do? Pin
Dave Doknjas17-Nov-08 13:45
Dave Doknjas17-Nov-08 13:45 
QuestionConv. VC++ 6.0 to VC++2008 Pin
Dale Bourne17-Nov-08 10:17
Dale Bourne17-Nov-08 10:17 
QuestionRe: Conv. VC++ 6.0 to VC++2008 Pin
David Crow17-Nov-08 10:58
David Crow17-Nov-08 10:58 

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.