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

C / C++ / MFC

 
GeneralProject help - Database + Excel Pin
J.B.13-May-05 3:06
J.B.13-May-05 3:06 
GeneralRe: Project help - Database + Excel Pin
David Crow13-May-05 3:13
David Crow13-May-05 3:13 
GeneralParsing HTML Pin
Priyank Bolia13-May-05 3:00
Priyank Bolia13-May-05 3:00 
GeneralRe: Parsing HTML Pin
jc0dex13-May-05 10:55
jc0dex13-May-05 10:55 
GeneralRe: Parsing HTML Pin
Priyank Bolia15-May-05 0:06
Priyank Bolia15-May-05 0:06 
GeneralRe: Parsing HTML Pin
Alexander M.,13-May-05 13:45
Alexander M.,13-May-05 13:45 
GeneralSendInput - mouse Pin
mcsherry13-May-05 2:11
mcsherry13-May-05 2:11 
GeneralPlugin Framework for MFC Dialogs Pin
Anonymous13-May-05 2:05
Anonymous13-May-05 2:05 
Hi all,

I'm tring to implement a clean, elegant plugin framework for MFC dialogs with explicit loading (unfortunately I have to use VC++ 6.0).

The COM-based, vtable approach proposed in

http://www.tweakbits.com/articles/dll/index.html
http://www.flipcode.com/articles/article_winplugins-pf.shtml

seems to be the most appealing one to me.

The code examples presented in these two links above (and my own quick hacks) work as expected with non-MFC classes and functions.

Unfortunately, if I expand the samples and integrate some MFC dialogs (I've used regular DLLs with shared MFC and thereafter extented MFC DLLs) the applications throws an assert if I create the new dialog class in the DLL.
(There's something I've messed up with MFC, CWinApp, AFX_MANAGE_STATE etc.)

So, I know there are some great tutorials on codeproject and codeguru which deal with MFC dialogs in DLLs and explicit (dynamic) loading and plugin frameworks, but none of them presented a combination of both.. Smile | :)

Are there any other pointers or tutorials to example code which integrate MFC dialogs in DLLs in a nice and easy way (or can anyone post a small example here)?

Thanks and kind regards!
GeneralDo you know What function mediaplayer call when it open file Pin
multibox13-May-05 1:59
multibox13-May-05 1:59 
GeneralRe: Do you know What function mediaplayer call when it open file Pin
13-May-05 2:16
suss13-May-05 2:16 
GeneralRe: Do you know What function mediaplayer call when it open file Pin
multibox13-May-05 2:36
multibox13-May-05 2:36 
GeneralBackground Image for Dialog in MFC Pin
Member 118935913-May-05 1:53
Member 118935913-May-05 1:53 
GeneralRe: Background Image for Dialog in MFC Pin
David Crow13-May-05 2:09
David Crow13-May-05 2:09 
GeneralSocket Pin
cberam13-May-05 1:47
cberam13-May-05 1:47 
GeneralRe: Socket Pin
itkid13-May-05 1:50
itkid13-May-05 1:50 
GeneralRe: Socket Pin
Alexander M.,13-May-05 1:52
Alexander M.,13-May-05 1:52 
Generalpthread_create Pin
Tuscon13-May-05 1:31
Tuscon13-May-05 1:31 
GeneralRe: pthread_create Pin
Priyank Bolia13-May-05 1:44
Priyank Bolia13-May-05 1:44 
GeneralRe: pthread_create Pin
Tuscon13-May-05 1:51
Tuscon13-May-05 1:51 
GeneralRe: pthread_create Pin
Priyank Bolia13-May-05 2:24
Priyank Bolia13-May-05 2:24 
GeneralRe: pthread_create Pin
David Crow13-May-05 2:11
David Crow13-May-05 2:11 
GeneralRe: pthread_create Pin
Bob Stanneveld13-May-05 4:00
Bob Stanneveld13-May-05 4:00 
GeneralDirectX - DrawIndexedPrimitive Pin
Marekh13-May-05 0:57
Marekh13-May-05 0:57 
GeneralDLL memory issue Pin
Andrew Hoole13-May-05 0:48
Andrew Hoole13-May-05 0:48 
GeneralRe: DLL memory issue Pin
lynchspawn13-May-05 1:54
lynchspawn13-May-05 1:54 

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.