Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL Iterator question Pin
Joaquín M López Muñoz14-Oct-02 0:03
Joaquín M López Muñoz14-Oct-02 0:03 
GeneralRe: STL Iterator question Pin
Jon Hulatt14-Oct-02 0:06
Jon Hulatt14-Oct-02 0:06 
GeneralRe: STL Iterator question Pin
Joaquín M López Muñoz14-Oct-02 0:24
Joaquín M López Muñoz14-Oct-02 0:24 
GeneralRe: STL Iterator question Pin
Senkwe Chanda14-Oct-02 0:12
Senkwe Chanda14-Oct-02 0:12 
QuestionHow to get text in CHtmlView at position that mouse clicked? Pin
sonshiro13-Oct-02 23:17
sonshiro13-Oct-02 23:17 
AnswerRe: How to get text in CHtmlView at position that mouse clicked? Pin
Stephane Rodriguez.13-Oct-02 23:36
Stephane Rodriguez.13-Oct-02 23:36 
GeneralVC6 - Some Redistributing question Pin
Seven Heaven13-Oct-02 23:13
sussSeven Heaven13-Oct-02 23:13 
GeneralRe: VC6 - Some Redistributing question Pin
Stephane Rodriguez.13-Oct-02 23:27
Stephane Rodriguez.13-Oct-02 23:27 
1) If you use MFC as static link, you don't need either of these DLLs (all the code is embedded in your exe or dll).

If you use MFC as shared dll (default behaviour) then yes redistrubtion problems arise.

mfc42.dll and msvcrt.dll are the primary release dlls and are needed. But msvcirt.dll, msvcp60.dll, and a few others (including msstkprp.dll) may be required depending on whether you use them. To know it, just use "Dependency walker" and figure them out. Otherwise you could rename one of those dlls and try to run your program. If it runs fine, now you know...

Be warned, if <winsysdir>mfc42.dll is already installed (but in an older version) and locked by another process, then you won't be able to overwrite it until next boot-time. And you'll have to add a win.ini entry and stuff ==> use InstallShield for this purpose instead.

atl.dll is often not needed. Default use of atl is static linking, thus atl.dll is not needed. Again, check this out with "Dependency walker" (static report is enough). You may also check out your project settings : if there is no _ATL_DLL, then you don't need atl.dll at all.

2) Go on. It's fine. ::LoadLibrary() always consider the current directory, so as long as your app loads those DLLs at launch-time (before you do any ::SetCurDir(...)) it's ok.

3) mfc42.dll is actually a COM component. Just ask Install shield to register it. Or dfo yourself a regsvr32 mfc42.dll


x) A question you didn't ask. What about restricted profiles, such lke those from NT/2K/XP : in fact, you can't rely on raw installation (belive it or not) : you MUST use Windows Installer. .msi files are the only files allowed to install anything on a client desktop with restricted profile. Of course, you may end up asding the end user to log as local admin, but now you know...
To manage .msi files (and embed .msm MFC merge modules), use either VisualStudio Installer, or InstallShield 7, or upgrade to VC7.





She's so dirty, she threw a boomerang and it wouldn't even come back.
GeneralRe: VC6 - Some Redistributing question Pin
Anonymous14-Oct-02 0:10
Anonymous14-Oct-02 0:10 
GeneralRe: VC6 - Some Redistributing question Pin
Stephane Rodriguez.14-Oct-02 0:22
Stephane Rodriguez.14-Oct-02 0:22 
GeneralAdo trouble Pin
stevenson13-Oct-02 23:11
stevenson13-Oct-02 23:11 
GeneralRe: Ado trouble Pin
Jon Hulatt14-Oct-02 0:07
Jon Hulatt14-Oct-02 0:07 
GeneralRe: Ado trouble Pin
stevenson14-Oct-02 14:08
stevenson14-Oct-02 14:08 
Generalmissing "eh.h" file!!! Pin
John Bosko13-Oct-02 23:03
John Bosko13-Oct-02 23:03 
GeneralRe: missing "eh.h" file!!! Pin
Joaquín M López Muñoz14-Oct-02 0:04
Joaquín M López Muñoz14-Oct-02 0:04 
GeneralRe: missing "eh.h" file!!! Pin
John Bosko14-Oct-02 1:22
John Bosko14-Oct-02 1:22 
Questionhow set Cursor spot Position? Pin
wangyiming13-Oct-02 22:37
wangyiming13-Oct-02 22:37 
AnswerRe: how set Cursor spot Position? Pin
rjuncu13-Oct-02 23:29
rjuncu13-Oct-02 23:29 
GeneralRe: how set Cursor spot Position? Pin
wangyiming14-Oct-02 18:31
wangyiming14-Oct-02 18:31 
QuestionHow to redraw background after SWP_NOREDRAW? Pin
Hiusing13-Oct-02 21:58
Hiusing13-Oct-02 21:58 
QuestionPassword checker....? Pin
13-Oct-02 20:48
suss13-Oct-02 20:48 
AnswerRe: Password checker....? Pin
Cornelis15-Oct-02 23:34
Cornelis15-Oct-02 23:34 
QuestionHow to get the resource id of a CPropertyPage? Pin
Daniel Strigl13-Oct-02 20:19
Daniel Strigl13-Oct-02 20:19 
AnswerRe: How to get the resource id of a CPropertyPage? Pin
Jon Hulatt13-Oct-02 21:33
Jon Hulatt13-Oct-02 21:33 
GeneralRe: How to get the resource id of a CPropertyPage? Pin
Daniel Strigl13-Oct-02 22:01
Daniel Strigl13-Oct-02 22:01 

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.