Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorted List Pin
The_Server25-Sep-01 13:41
The_Server25-Sep-01 13:41 
GeneralActive document server & print preview Pin
25-Sep-01 10:53
suss25-Sep-01 10:53 
GeneralDLLs: conceptual questions Pin
Stephen Wilson25-Sep-01 10:19
Stephen Wilson25-Sep-01 10:19 
GeneralRe: DLLs: conceptual questions Pin
Michael P Butler25-Sep-01 10:29
Michael P Butler25-Sep-01 10:29 
GeneralRe: DLLs: conceptual questions Pin
Stephen Wilson25-Sep-01 11:08
Stephen Wilson25-Sep-01 11:08 
GeneralRe: DLLs: conceptual questions Pin
Mike Burston25-Sep-01 12:32
Mike Burston25-Sep-01 12:32 
GeneralThanks! It looks really useful Pin
Stephen Wilson25-Sep-01 13:02
Stephen Wilson25-Sep-01 13:02 
GeneralRe: Thanks! It looks really useful Pin
Mike Burston25-Sep-01 14:31
Mike Burston25-Sep-01 14:31 
Stephen,

I'd be lying to you if I said I understand the whole 'extension DLL' concept. I have read the same documentation you are quoting from, and it's obviously poorly written - it's quite common to derive objects from CObject and pass them into and out of DLLs. I do it all the time with CDialog derived classes. My guess is that this particular piece of documentation was written before (or without the knowledge of!) the whole "AFX_MANAGE_STATE" concept, which seems to be the key to allowing a 'regular' MFC DLL to import and export CObjects. The main difference (as far as I can see) between an extension DLL and a regular DLL is in the handling of resources. A regular DLL has it's own private resources - a dialog with an ID of "1000" can exist in two separate regular DLLs, and there will be no problems (provided the "AFX_MANAGE_STATE" rules are followed!). In an extension DLL, the resources are 'appended' to the apps resources, so you can get conflicts with ID ranges, etc.

There are also issues to be dealt with when mixing MFC objects and threading, so if a DLL wants to create it's own threads you need to be very careful in passing certain MFC objects between DLLs.

----------------
Reg : "Well, what Jesus blatantly fails to appreciate is that it's the meek who are the problem."

GeneralCFindAndReplace Dialog Pin
25-Sep-01 8:33
suss25-Sep-01 8:33 
Generalaccessing adressbar of IE Pin
25-Sep-01 7:06
suss25-Sep-01 7:06 
QuestionHow do I access individual bits? Pin
Craig Miller25-Sep-01 6:42
Craig Miller25-Sep-01 6:42 
AnswerRe: How do I access individual bits? Pin
Chris Losinger25-Sep-01 6:58
professionalChris Losinger25-Sep-01 6:58 
GeneralRe: How do I access individual bits? Pin
Craig Miller26-Sep-01 8:16
Craig Miller26-Sep-01 8:16 
AnswerRe: How do I access individual bits? Pin
User 988525-Sep-01 11:10
User 988525-Sep-01 11:10 
GeneralDirectShow (again) Pin
#realJSOP25-Sep-01 6:40
professional#realJSOP25-Sep-01 6:40 
GeneralNeed a link to article Pin
25-Sep-01 6:36
suss25-Sep-01 6:36 
GeneralRe: Need a link to article Pin
Michael Dunn25-Sep-01 16:59
sitebuilderMichael Dunn25-Sep-01 16:59 
GeneralWTL windows and unchanging cursors Pin
The Arabundi25-Sep-01 6:05
The Arabundi25-Sep-01 6:05 
GeneralRe: WTL windows and unchanging cursors Pin
Tim Smith25-Sep-01 6:33
Tim Smith25-Sep-01 6:33 
GeneralRe: WTL windows and unchanging cursors Pin
The Arabundi25-Sep-01 9:05
The Arabundi25-Sep-01 9:05 
GeneralTab order question Pin
RobJones25-Sep-01 5:51
RobJones25-Sep-01 5:51 
GeneralRe: Tab order question Pin
RobJones25-Sep-01 7:01
RobJones25-Sep-01 7:01 
GeneralRe: Tab order question Pin
Paolo Messina26-Sep-01 0:46
professionalPaolo Messina26-Sep-01 0:46 
GeneralRe: Tab order question Pin
RobJones26-Sep-01 4:39
RobJones26-Sep-01 4:39 
QuestionHow can I (programatically) scroll the client area derived from CHtmlView. Pin
Umar Riaz25-Sep-01 5:33
Umar Riaz25-Sep-01 5: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.