AfxTermExtensionModule necessary?
Matthias Bohlen -- MATTES@logotec.com
Wednesday, March 06, 1996
Hello MFC fighters...
When I write an MFC extension DLL with VC++ 4.0, and
when I create it with AppWizard (DLL), then the *.CPP file does NOT
contain a call to AfxTermExtensionModule inside the
DLL_PROCESS_DETACH case of DLLMain().
Question: From somewhere (do not remember any more) I know that I
should call this function inside there. Is the call still necessary
or not?
Best regards,
Matthias Bohlen
-------------------------------------------------------
Matthias Bohlen Logotec Software GmbH
Phone: +49 228 64 80 520 Chateauneufstr. 10
FAX: +49 228 64 80 525 D-53347 Alfter, Germany
E-mail: mattes@logotec.com
-------------------------------------------------------
Mike Blaszczak -- mikeblas@msn.com
Thursday, March 07, 1996
AfxTermExtensionModlue() is necessary for any extension DLL which might be
unloaded and reloaded dynamically. One of the tech notes explains this in the
online documentation--in 4.0 it isn't keyworded, so you have to do a full text
search to find the right one.
Anyway, you probably can't predict if someone is gonna unload your DLL
dynamically unless it's not going to be used outside of your application.
AfxTermExtensionModule() isn't expensive, so it's a pretty good idea to code a
call to it now rather than let it bite you later.
.B ekiM
error C2511: 'mfcTeam.BekiM' : overloaded member not found
----------
From: owner-mfc-l@netcom.com on behalf of Matthias Bohlen
Sent: Wednesday, March 06, 1996 03:31
To: mfc-l@netcom.com
Subject: AfxTermExtensionModule necessary?
Hello MFC fighters...
When I write an MFC extension DLL with VC++ 4.0, and
when I create it with AppWizard (DLL), then the *.CPP file does NOT
contain a call to AfxTermExtensionModule inside the
DLL_PROCESS_DETACH case of DLLMain().
Question: From somewhere (do not remember any more) I know that I
should call this function inside there. Is the call still necessary
or not?
Best regards,
Matthias Bohlen
-------------------------------------------------------
Matthias Bohlen Logotec Software GmbH
Phone: +49 228 64 80 520 Chateauneufstr. 10
FAX: +49 228 64 80 525 D-53347 Alfter, Germany
E-mail: mattes@logotec.com
-------------------------------------------------------
| Вернуться в корень Архива
|