Click here to Skip to main content
15,888,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlibmms and ffmpeg Pin
rastaVnuce31-May-10 2:52
rastaVnuce31-May-10 2:52 
QuestionDLL Pin
john563231-May-10 0:03
john563231-May-10 0:03 
AnswerRe: DLL Pin
Cedric Moonen31-May-10 0:14
Cedric Moonen31-May-10 0:14 
GeneralRe: DLL Pin
john563231-May-10 0:39
john563231-May-10 0:39 
GeneralRe: DLL Pin
ThatsAlok31-May-10 1:47
ThatsAlok31-May-10 1:47 
AnswerRe: DLL Pin
ThatsAlok31-May-10 1:13
ThatsAlok31-May-10 1:13 
GeneralRe: DLL Pin
john563231-May-10 2:29
john563231-May-10 2:29 
AnswerRe: DLL Pin
Aescleal31-May-10 9:49
Aescleal31-May-10 9:49 
It all depends what you're trying to achieve. MFC extension DLLs do what they say on the tin, they extend MFC and you can't use it in application if the application's not MFC. So if you don't want to write an MFC app then this choice isn't for you!

Regular DLLs can be called by any application. They expose a C or C++ interface that doesn't use MFC in the interface. You can still use MFC internally though, in the implementation. If you want you code callable by non-MFC apps use a regular DLL (say you implement a control using MFC but give it a fairly bog standard message interface, or you're insane and for some reason like CString).

The final choice is whether to link MFC statically or dynamically. Linking statically increases the size of your DLL but means you won't have to ship an MFC DLL with your app (or use the merge module in your installer). This makes it a bit more self contained. However even using a simple window class can be quite costly in terms of what MFC stuff your DLL has to drag in to do it's stuff. If you link dynamically your DLL will be smaller but you'll have to ship another stonking great DLL. If you're already shipping the MFC DLL for another nefarious purpose it's a no brainer, link dynamically. Otherwise build both ways and see which gives you a size you're happy with.

Cheers,

Ash
Questionencrypt: how to save key to key store Pin
lcryby30-May-10 22:01
lcryby30-May-10 22:01 
QuestionCStaic Problem Pin
john563230-May-10 21:14
john563230-May-10 21:14 
AnswerRe: CStaic Problem Pin
Code-o-mat30-May-10 21:25
Code-o-mat30-May-10 21:25 
AnswerRe: CStaic Problem Pin
ThatsAlok30-May-10 21:27
ThatsAlok30-May-10 21:27 
QuestionGetFont() returning Null [modified] Pin
decoder_8530-May-10 19:26
decoder_8530-May-10 19:26 
AnswerRe: GetFont() returning Null Pin
ThatsAlok30-May-10 20:47
ThatsAlok30-May-10 20:47 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:36
decoder_8530-May-10 23:36 
GeneralRe: GetFont() returning Null Pin
KarstenK31-May-10 3:53
mveKarstenK31-May-10 3:53 
AnswerRe: GetFont() returning Null Pin
Code-o-mat30-May-10 21:32
Code-o-mat30-May-10 21:32 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:00
decoder_8530-May-10 23:00 
GeneralRe: GetFont() returning Null Pin
Code-o-mat30-May-10 23:26
Code-o-mat30-May-10 23:26 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:35
decoder_8530-May-10 23:35 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:38
decoder_8530-May-10 23:38 
GeneralRe: GetFont() returning Null Pin
Code-o-mat30-May-10 23:41
Code-o-mat30-May-10 23:41 
GeneralRe: GetFont() returning Null Pin
decoder_8530-May-10 23:55
decoder_8530-May-10 23:55 
GeneralRe: GetFont() returning Null Pin
Code-o-mat31-May-10 0:35
Code-o-mat31-May-10 0:35 
GeneralRe: GetFont() returning Null Pin
decoder_8531-May-10 3:01
decoder_8531-May-10 3:01 

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.