Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorted List Pin
Christian Graus25-Sep-01 13:48
protectorChristian Graus25-Sep-01 13:48 
GeneralRe: Sorted List Pin
markkuk25-Sep-01 20:39
markkuk25-Sep-01 20:39 
GeneralRe: Sorted List Pin
The_Server25-Sep-01 13:22
The_Server25-Sep-01 13:22 
GeneralRe: Sorted List Pin
Not Active25-Sep-01 11:45
mentorNot Active25-Sep-01 11:45 
GeneralRe: Sorted List Pin
User 988525-Sep-01 12:06
User 988525-Sep-01 12:06 
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 
Hello everyone,

I am new to C++/MFC so I hope someone can help me out here.

I'm writing a program which does things relating to various (human) languages. I would like the code which deals with each language (e.g. French, German, etc.) to be stored in a DLL. The main program will not know in advance which language DLLs exist, it will look in a folder to find them.

The task of the DLLs will be to operate on classes derived from CObject. Sometimes the DLLs will need to put up dialog boxes.

I have two questions:

(1) Would it be possible to have a class CLanguage in the main program, overridden by a class CFrench in the French DLL, to achieve all French-related functionality, by a class CGerman in the German DLL, etc. Then in the main program the user would pick a language and the main program would create a CFrench or a CGerman etc. as appropriate. This seems probably impossible to me because the main program cannot have access to the definition of a CFrench because it doesn't know in advance what languages exist. Is this correct?

(2) Suppose that is not possible, then no problem, I can do it another way: The DLLs would be required to export certain fuctions (e.g. InitLanguage, GetVerbList, etc) and the main program would dynamically load the dll and call the functions with GetProcAddress. In that case, do I need a regular DLL or an extension DLL? The exported functions in the DLL would have some parameters which are pointers to classes derived from CObject, and they would use MFC. But I can't work out from the documentation whether this means I need an extension DLL, and I don't really understand the difference between extension DLLs and regular DLLs.

If anyone can help, I will be really grateful.

best regards,


Stephen Wilson
UCLA Department of Linguistics

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 
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 

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.