Microsoft KB Archive/127049

{|
 * width="100%"|

MFC ver 2.52a Upgrade to Fix Database & Other Problems

 * }

Q127049

-

The information in this article applies to:


 * The Microsoft Foundation Classes (MFC), used with:
 * Microsoft Visual C++, version 1.52

-

SUMMARY
This article explains how to get a patch to fix the problems discussed below.

NOTE: This patch is not needed for the 32-bit MFC classes, version 3.1. The CRecordset database class that shipped with Microsoft Visual C++ version 1.52 cannot modify existing databases. There is a conditional statement in DBCORE.CPP that prevents insertion, addition, or deletion of records to databases. This can result in an Application Error. DBCORE is a component of MFCD250.DLL.

In addition there is a condition in MFC250.DLL that can cause _afxMsgCache to call a message handler from a previously run application that used this dll. This results in calls to functions that are no longer present and can result in an Application Error. Microsoft has confirmed these to be problems in the Microsoft products listed at the beginning of this article. These two problems are fixed in MFC252a.EXE. This patch can only be applied to users of MFC version 2.52, which was released with Visual C++ 1.52. MFC252a.EXE will upgrade the version resource of MFC250.DLL and MFCD250.DLL to be version 2.52a.

MORE INFORMATION
In general, if you are planning to redistribute the MFC250.DLL or MFCD250.DLL that is version 2.52, you should apply this patch and redistribute the 2.52a version of the DLLs.

You can determine if you need this patch by viewing the file properties for mfc250[d].dll and mfcd250[d].dll with File Manager. If the version is 2.5.200, you should apply the patch. After the patch is applied the version will be 2.5.200a.

In order to use the patch, download the file MFC252a.EXE, put it in a temporary directory, and run the executable. The README.TXT included in MFC252a.EXE contains more detailed information on the patch contents and it explains how to apply the patch.

The following files are available for download from the Microsoft Download Center:

Mfc252a.exe

For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

Additional query words: ODBC Open Database Connectivity

Keywords : kbcode kbfile kbother kb16bitonly kbDatabase kbMFC kbODBC kbVC kbVC152

Issue type :

Technology : kbAudDeveloper kbMFC