FIX: In Visual Studio .NET 2003, the CRegObject::ResourceRegisterSz function does not test for a NULL value, and the CDatabase::Connect method passes an incorrect buffer size (884057)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual C++ .NET (2003)

SYMPTOMS

In your Microsoft Visual C++ .NET solution in Microsoft Visual Studio .NET, the following two problems may occur:
  • The CRegObject::ResourceRegisterSz function does not test for a NULL value in the lpszType member. This behavior could cause failures when Component Object Model (COM) Dynamic Link Libraries (DLLs) are registered.

    Note The declaration of the CRegObject::ResourceRegisterSz function is located in the statreg.h file that is included with the ATL source in Visual Studio .NET.
  • The CDatabase::Connect method passes an incorrect buffer size to the SQLDriverConnect function. This behavior could cause the application that makes this function call to unexpectedly quit.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio .NET 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart requirement

You do not have to restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   17-Jul-2003  22:22                     56,223  Afx.h
   12-Aug-2004  02:51                     14,546  Atl.lib
   12-Aug-2004  02:51  7.10.4224.0        89,088  Atl71.dll        
   18-Nov-2003  03:55                     17,677  Atlcomtime.inl
   22-Jan-2004  17:05                     13,014  Atlevent.h
   04-May-2004  18:11                     76,374  Atlhost.h
   12-Aug-2004  02:51                  1,199,632  Atls.lib
   12-Aug-2004  02:50                  1,240,238  Atlsd.lib
   29-Aug-2003  22:16                     10,647  Atltime.h
   29-Aug-2003  22:18                     14,773  Atltime.inl
   03-Aug-2004  19:55                    118,402  Dbcore.cpp
   12-Aug-2004  03:56                    319,746  Eafxis.lib
   12-Aug-2004  03:56                    310,128  Eafxisd.lib
   11-Sep-2003  20:30                      9,121  Filest.cpp
   12-Aug-2004  04:00  7.10.4224.0     2,183,168  Mfc70d.dll       
   12-Aug-2004  04:59  7.10.4224.0     1,060,864  Mfc71.dll        
   12-Aug-2004  04:02                  2,580,010  Mfc71.lib
   12-Aug-2004  04:13  7.10.4224.0        40,960  Mfc71chs.dll     
   12-Aug-2004  04:13  7.10.4224.0        45,056  Mfc71cht.dll     
   12-Aug-2004  04:01                  3,361,062  Mfc71d.lib
   12-Aug-2004  04:13  7.10.4224.0        65,536  Mfc71deu.dll     
   12-Aug-2004  04:13  7.10.4224.0        57,344  Mfc71enu.dll     
   12-Aug-2004  04:13  7.10.4224.0        61,440  Mfc71esp.dll     
   12-Aug-2004  04:13  7.10.4224.0        61,440  Mfc71fra.dll     
   12-Aug-2004  04:13  7.10.4224.0        61,440  Mfc71ita.dll     
   12-Aug-2004  04:13  7.10.4224.0        49,152  Mfc71jpn.dll     
   12-Aug-2004  04:13  7.10.4224.0        49,152  Mfc71kor.dll     
   12-Aug-2004  04:50  7.10.4224.0     1,047,552  Mfc71u.dll       
   12-Aug-2004  04:06                  3,348,140  Mfc71u.lib
   12-Aug-2004  04:03  7.10.4224.0     2,178,048  Mfc71ud.dll      
   12-Aug-2004  04:04                  4,287,960  Mfc71ud.lib
   12-Aug-2004  04:24                    555,888  Mfcs71.lib
   12-Aug-2004  04:01                    582,136  Mfcs71d.lib
   12-Aug-2004  04:25                    490,054  Mfcs71u.lib
   12-Aug-2004  04:04                    507,600  Mfcs71ud.lib
   12-Aug-2004  03:56                 16,912,682  Nafxcw.lib
   12-Aug-2004  03:56                 17,041,478  Nafxcwd.lib
   12-Aug-2004  03:56                    129,138  Nafxis.lib
   12-Aug-2004  03:56                    132,454  Nafxisd.lib
   17-Jul-2003  22:19                      6,073  Objcore.cpp
   17-Jul-2003  23:21                     24,323  Occcont.cpp
   16-Jul-2004  21:34                     20,901  Occdlg.cpp
   20-Jan-2004  18:31                     16,801  Olefact.cpp
   25-Mar-2004  04:32                     40,431  Olepset.cpp
   05-May-2004  15:48                     14,141  Olestrm.cpp
   14-Jul-2004  19:47                     34,214  Statreg.h
   12-Aug-2004  03:59                 17,211,274  Uafxcw.lib
   12-Aug-2004  03:59                 17,433,488  Uafxcwd.lib
   12-Aug-2004  19:46                    101,376  Vc.user.atl71.rtl.x8
   12-Aug-2004  19:46                    100,864  Vc.user.mfc71.loc.rtl.x8
   12-Aug-2004  19:46                    919,040  Vc.user.mfc71.rtl.x8
   29-May-2004  00:29                     65,304  Winfrm.cpp
   27-Mar-2004  01:40                     19,190  Winocc.cpp

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the CDatabase object, visit the following Microsoft Developer Network (MSDN) Web site:For more information about the static registry for ATL, visit the following MSDN Web site: For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbprb KB884057 kbAudDeveloper