Microsoft KB Archive/129782

= FIX: MFCN30.DLL and MFCN30D.DLL Not Copied with Win32S Setup =

Article ID: 129782

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Foundation Class Library 4.2, when used with:
 * Microsoft Visual C++ 2.1

-



This article was previously published under Q129782



SYMPTOMS
An attempt to run an MFC application that uses the socket classes generates the following File Error under Win32s:

Cannot find MFCN30D.DLL

Then when you click the Close button, the following error appears:

Cannot Run Program

Unexpected error: 21.

NOTE: A release build of an application would list MFCN30.DLL instead of MFCN30D.DLL in the first message box.



CAUSE
The Win32S setup included on the Visual C++ CD does not copy MFCN30.DLL or MFCN30D.DLL.



RESOLUTION
Copy MFCN30.DLL and MFCN30D.DLL from the CD to the WINDOWS\SYSTEM directory of the Win32S machine:


 * MFCN30.DLL can be found on the CD in this directory: \MSVC20\REDIST
 * MFCN30D.DLL can be found on the CD in this directory: \MSVC20\DEBUG

If your application has a set-up program, make sure it also copies these files.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++, 32-bit Edition, version 2.2.

Additional query words: 2.10 3.10 CSocket CAsyncSocket win32-s

Keywords: kbbug kbfix kbsetup kbwinsock KB129782

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.