Microsoft KB Archive/322862

= Visio2000: &quot;Run-time Error R6026 Pure Virtual Function Call&quot; When You Add Snap-in to MMC =

Article ID: 322862

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Visio 2000 Service Release 1, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q322862



SYMPTOMS
When you open Microsoft Management Console (MMC) and try to add a snap-in to MMC on your Microsoft Windows 2000-based computer, you may receive an error message similar to the following:

Run-time Error

Program: C:\Winnt\System32\Mmc.exe

R6025- pure virtual function call



CAUSE
This problem may occur if you install Microsoft Visio 2000 Enterprise Edition Service Release 1 (SR-1) and Microsoft SQL Server 2000 is already installed on the computer. When you install Visio, Setup replaces the following files on the hard disk with earlier versions:

Dtsui.dll

Sqlns.dll

Sqldmo.dll

Sqllex.dll

Sqlmmc.dll



RESOLUTION
To resolve this problem, follow these steps.  NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

 Stop the MSSQLSERVER Service. To do so:  Click Start, point to Settings, and then click Control Panel. Double-click Administrative Tools, and then double-click Services. In the right pane, right-click MSSQLSERVER, and then click Stop. </li> Click Start, and then click Run.</li> In the Open box, type cmd, and then click OK.</li> Switch to the : Program Files\Microsoft SQL Server\80\Tools\Binn folder, where   is the drive on which Windows is installed. To do so, type the following lines at the command prompt, pressing ENTER after each line:

''' :

cd Program Files\Microsoft SQL Server\80\Tools\Binn'''

</li> Remove the following files from the registry:

Dtsui.dll

Sqlns.dll

Sqldmo.dll

Sqllex.dll

Sqlmmc.dll

To do so, for each file in the list, type the following line at the command prompt, and then press ENTER, where  is the name of the file that you want to remove from the registry:

regsvr32 /u 

For example, to remove the Dtsui.dll file from the registry, type regsvr32 /u dtsui.dll, and then press ENTER.</li> Rename each of the files that you removed from the registry in step 5 by using the .old extension. For example, to rename Dtsui.dll, right-click the file, and then click Rename. Type Dtsui.old, and then press ENTER.</li> Insert the Microsoft SQL Server 2000 CD-ROM into the CD-ROM or DVD-ROM drive.</li> Start Windows Explorer.</li> Copy the following files from the x86\Binn or Enterprise\x86\Binn folder of the SQL Server 2000 CD-ROM to the Program Files\Microsoft SQL Server\80\Tools\Binn folder on the hard disk:

Dtsui.dll

Sqlns.dll

Sqldmo.dll

Sqllex.dll

Sqlmmc.dll

</li> Register the files that you copied in step 9. To do so, for each file that you copied, type the following line at the command prompt, and then press ENTER, where  is the name of the file that you want to register:

regsvr32 

For example, to register the Dtsui.dll file, type regsvr32 dtsui.dll, and then press ENTER.</li> Restart the MSSQLSERVER Service that you stopped in step 1. To do so:  Click Start, point to Settings, and then click Control Panel.</li> Double-click Administrative Tools, and then double-click Services.</li> In the right pane, right-click MSSQLSERVER, and then click Start.</li></ol> </li></ol>

Additional query words: prb

Keywords: kberrmsg kbprb KB322862

-

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

© Microsoft Corporation. All rights reserved.