Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get/Kill focus in MFC Pin
geoyar6-Aug-10 7:29
professionalgeoyar6-Aug-10 7:29 
GeneralRe: Get/Kill focus in MFC Pin
Code-o-mat6-Aug-10 8:35
Code-o-mat6-Aug-10 8:35 
GeneralRe: Get/Kill focus in MFC Pin
geoyar6-Aug-10 10:01
professionalgeoyar6-Aug-10 10:01 
GeneralRe: Get/Kill focus in MFC Pin
Code-o-mat6-Aug-10 10:06
Code-o-mat6-Aug-10 10:06 
GeneralRe: Get/Kill focus in MFC Pin
geoyar6-Aug-10 11:31
professionalgeoyar6-Aug-10 11:31 
GeneralRe: Get/Kill focus in MFC Pin
Code-o-mat6-Aug-10 11:36
Code-o-mat6-Aug-10 11:36 
GeneralRe: Get/Kill focus in MFC Pin
geoyar6-Aug-10 15:41
professionalgeoyar6-Aug-10 15:41 
GeneralRe: Get/Kill focus in MFC Pin
geoyar6-Aug-10 16:08
professionalgeoyar6-Aug-10 16:08 
GeneralRe: Get/Kill focus in MFC Pin
Code-o-mat6-Aug-10 22:40
Code-o-mat6-Aug-10 22:40 
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 
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 
Not sure what you're talking about in the first paragraph (sorry!). When you define a function you're actually writing the code for it. At least in C++ terms, not sure what the C standard says about definitions.

Wrapping the DLL in a class may or may not be overkill. It's guarenteed to work and gives you a nice boundary to unit test around by adding something that's easily substitutable. If the DLL has a couple of hundred functions you're trying to use then it might be a headache (but then the DLL itself is likely to already be that) but for 20 or so functions it's less than an hours work.

As to the interpositioning I described... Why would there be any clash of names? You're not linking with the wrapped DLL so there are no names from it to clash with.

Cheers,

Ash

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.