Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: installer of VC++ application ? Pin
Trollslayer30-Oct-02 1:41
mentorTrollslayer30-Oct-02 1:41 
AnswerRe: installer of VC++ application ? Pin
Anonymous30-Oct-02 9:29
Anonymous30-Oct-02 9:29 
AnswerRe: installer of VC++ application ? Pin
v b sunil30-Oct-02 19:25
v b sunil30-Oct-02 19:25 
GeneralPeculiarity of hard-disk Pin
nencini29-Oct-02 21:01
nencini29-Oct-02 21:01 
GeneralDLL Question Pin
Stan the man29-Oct-02 20:37
Stan the man29-Oct-02 20:37 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 21:11
Joaquín M López Muñoz29-Oct-02 21:11 
GeneralRe: DLL Question Pin
Stan the man29-Oct-02 21:59
Stan the man29-Oct-02 21:59 
GeneralRe: DLL Question Pin
Joaquín M López Muñoz29-Oct-02 23:08
Joaquín M López Muñoz29-Oct-02 23:08 
So this means that if I have tons of classes and inherited classes, they will all need to be exported in the DLL.

Alas, yes. Unless you apply some data hiding technique like the one I described earlier or some sort of the so called pimpl idiom.

It seems you would need to rebuild the client everytime the DLL changes (add function to a class). But I know this is one advantage of the DLL is that it doesn't. Under what circumstance would you not need to recompile the client and can continue to use an updated DLL?

In a strict sense, client recompilation is needed everytime an exported class changes. However, you can (more o less safely) avoid client recompilation when you add static or non-static, non-virtual member functions to a class. As for message handlers, my hunch is that adding new handlers does ot require client recompilation.

Last question. Am I correct to say that the classes in the DLL can only use the resources declared in the DLL?

No. You're entering dangerous territory here, but in general MFC Extension DLLs do need to explicitly state that they're using their own resources with AFX_MANAGE_STATE. This implies that if AFX_MANAGE_STATE is not invoked, resources from the client .EXE will be used instead.



Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: DLL Question Pin
KarstenK30-Oct-02 1:49
mveKarstenK30-Oct-02 1:49 
GeneralRe: DLL Question Pin
Stan the man30-Oct-02 2:10
Stan the man30-Oct-02 2:10 
Generalinheritance steps... (property sheet and pages) Pin
Joan M29-Oct-02 20:26
professionalJoan M29-Oct-02 20:26 
GeneralRe: inheritance steps... (property sheet and pages) Pin
jhwurmbach29-Oct-02 21:16
jhwurmbach29-Oct-02 21:16 
GeneralRe: inheritance steps... (property sheet and pages) Pin
Joaquín M López Muñoz29-Oct-02 21:22
Joaquín M López Muñoz29-Oct-02 21:22 
GeneralExtension Dlls Pin
Furrukh Azam29-Oct-02 19:59
sussFurrukh Azam29-Oct-02 19:59 
GeneralRe: Extension Dlls Pin
Pavel Klocek29-Oct-02 21:07
Pavel Klocek29-Oct-02 21:07 
GeneralRe: Extension Dlls Pin
Trollslayer30-Oct-02 1:43
mentorTrollslayer30-Oct-02 1:43 
Questionrealloc assumption...? Pin
alex.barylski29-Oct-02 19:42
alex.barylski29-Oct-02 19:42 
AnswerRe: realloc assumption...? Pin
Stephane Rodriguez.29-Oct-02 20:14
Stephane Rodriguez.29-Oct-02 20:14 
GeneralRe: realloc assumption...? Pin
alex.barylski30-Oct-02 9:30
alex.barylski30-Oct-02 9:30 
GeneralRe: realloc assumption...? Pin
Stephane Rodriguez.30-Oct-02 9:42
Stephane Rodriguez.30-Oct-02 9:42 
GeneralSpy ++++ Pin
Shamoon29-Oct-02 19:23
Shamoon29-Oct-02 19:23 
GeneralRe: Spy ++++ Pin
dabs29-Oct-02 20:09
dabs29-Oct-02 20:09 
GeneralRe: Spy ++++ Pin
567890123430-Oct-02 2:32
567890123430-Oct-02 2:32 
GeneralClass in Dll Pin
stevenson29-Oct-02 19:16
stevenson29-Oct-02 19:16 
GeneralRe: Class in Dll Pin
Bugra Barin29-Oct-02 20:06
Bugra Barin29-Oct-02 20:06 

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.