Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get/Kill focus in MFC Pin
geoyar7-Aug-10 10:01
professionalgeoyar7-Aug-10 10:01 
GeneralRe: Get/Kill focus in MFC Pin
Code-o-mat7-Aug-10 10:17
Code-o-mat7-Aug-10 10:17 
QuestionPosting a lot of data messages to MFC-based GUI Pin
kirilo_l4-Aug-10 5:30
kirilo_l4-Aug-10 5:30 
AnswerRe: Posting a lot of data messages to MFC-based GUI Pin
Chris Meech4-Aug-10 6:46
Chris Meech4-Aug-10 6:46 
Questiondebugging sprintf -VS/C++ Pin
Alan Kurlansky4-Aug-10 5:07
Alan Kurlansky4-Aug-10 5:07 
AnswerRe: debugging sprintf -VS/C++ Pin
Aescleal4-Aug-10 5:29
Aescleal4-Aug-10 5:29 
AnswerRe: debugging sprintf -VS/C++ Pin
Moak5-Aug-10 2:41
Moak5-Aug-10 2:41 
QuestionHow to create a dll wrapper Pin
VentsyV4-Aug-10 4:11
VentsyV4-Aug-10 4:11 
I have a C++ dll, lib and the corresponding header file. I would like to create a dummy wrapper dll that simply returns True from some of the functions in the dll, so that when testing, I can replace the dll with the test one and have the application still work without recompilation.
Some function however (error handling) I would like to keep. My approach is as follows.

1. Copy the .h file in my local project folder and remove the extern keyword for the functions I would like to override, than add implementation for those functions.
2. All functions are declared __declspec( dllexport ) so that they are included in the dll.
3. I include the original lib file as an Additional dependency in the project, so I can link to the function definitions for the functions I'm not overriding. The project is set to DLL (I'm using VS)

Everything compiles fine, but when I use depends to look at the dll, I only see the functions I've implemented, not the ones from the lib.

Any ideas?
AnswerRe: How to create a dll wrapper Pin
Phil J Pearson4-Aug-10 4:31
Phil J Pearson4-Aug-10 4:31 
JokeRe: How to create a dll wrapper Pin
Sauro Viti4-Aug-10 4:38
professionalSauro Viti4-Aug-10 4:38 
GeneralRe: How to create a dll wrapper Pin
VentsyV4-Aug-10 5:33
VentsyV4-Aug-10 5:33 
GeneralRe: How to create a dll wrapper Pin
Aescleal4-Aug-10 5:55
Aescleal4-Aug-10 5:55 
GeneralRe: How to create a dll wrapper Pin
VentsyV4-Aug-10 6:09
VentsyV4-Aug-10 6:09 
AnswerRe: How to create a dll wrapper Pin
Aescleal4-Aug-10 5:02
Aescleal4-Aug-10 5:02 
GeneralRe: How to create a dll wrapper Pin
VentsyV4-Aug-10 5:31
VentsyV4-Aug-10 5:31 
GeneralRe: How to create a dll wrapper Pin
Aescleal4-Aug-10 5:47
Aescleal4-Aug-10 5:47 
GeneralRe: How to create a dll wrapper Pin
VentsyV4-Aug-10 6:11
VentsyV4-Aug-10 6:11 
GeneralRe: How to create a dll wrapper Pin
Aescleal4-Aug-10 7:54
Aescleal4-Aug-10 7:54 
AnswerRe: How to create a dll wrapper Pin
Shivanand Gupta5-Aug-10 0:40
Shivanand Gupta5-Aug-10 0:40 
Questioncompile file exe Pin
albertodiprima4-Aug-10 3:51
albertodiprima4-Aug-10 3:51 
AnswerRe: compile file exe Pin
Cedric Moonen4-Aug-10 3:57
Cedric Moonen4-Aug-10 3:57 
GeneralRe: compile file exe Pin
albertodiprima4-Aug-10 4:05
albertodiprima4-Aug-10 4:05 
AnswerRe: compile file exe Pin
Sauro Viti4-Aug-10 3:59
professionalSauro Viti4-Aug-10 3:59 
GeneralRe: compile file exe Pin
albertodiprima4-Aug-10 4:23
albertodiprima4-Aug-10 4:23 
GeneralRe: compile file exe Pin
Sauro Viti4-Aug-10 4:33
professionalSauro Viti4-Aug-10 4:33 

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.