Microsoft KB Archive/196796

= FIX: ClassWizard Unable to Create Files for New Class =

Article ID: 196796

Article Last Modified on 9/18/2003

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



This article was previously published under Q196796



SYMPTOMS
When you click OK in the dialog box to create a new class in ClassWizard, you receive the following error message:

Unable to open the files .h, .cpp

You are running Cheyenne's InocuLAN or InoculateIT. This problem has been seen on both Windows 2000 and Windows NT 4.0.



CAUSE
An interaction with the InocuLAN or InoculateIT virus-scanning software causes ClassWizard to report incorrectly that file creation failed.



RESOLUTION
The best workaround is to exclude the .clw, .h, and .cpp files from being scanned by the antivirus software. This prevents the sharing violation that occurs when the antivirus software and Visual Studio try to access the files at the same time.

You can also use one of the following alternate workarounds:
 * Start the InocuLAN or InoculateIT Realtime Monitor if it is not already started. On the Explorer taskbar, right-click the InocuLAN or InoculateIT Realtime Monitor icon. Click Monitor Incoming Files.
 * Close the project workspace and delete the project's .clw file. Reopen the project, load ClassWizard, and rebuild the .clw database at the prompt..



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Microsoft Visual C++ .NET.



MORE INFORMATION
Virus-scanning software interactions may cause other problems with Visual C++. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

185288 PRB: Cheyenne InocuLAN May Cause ATL Wizard to Crash DevStudio

For additional information about or support about InocuLAN, contact Cheyenne. You can reach Cheyenne at (800) 243-9462, or at the following Cheyenne Web site:

http://www.cheyenne.com/Product-Info/windowsnt/inoculan-nt-menu.html

Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information. The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Steps to Reproduce the Behavior
In these steps, it is assumed that you are running Microsoft Windows NT 4.0 with Cheyenne InocuLAN for Windows NT. The InocuLAN Realtime Monitor is set to monitor both incoming and outgoing files.


 * 1) Start Visual C++ 6.0.
 * 2) On the File menu, click New. On the Project tab, click MFC AppWizard (.exe). Name the project ( TestWiz, for example).
 * 3) Click OK, click Finish, and then click OK in the confirmation dialog box.
 * 4) On the Insert menu, click Resource, click Dialog, then click New.
 * 5) Double-click the new dialog box that is displayed in the resource editor.
 * 6) ClassWizard appears with a prompt to create a new class for the dialog box ID of the new dialog box. Click OK.
 * 7) In the Name text box, type x, and then click OK.

You receive the following error message:

Unable to open the files x.h, x.cpp

Additional query words: kbDSupport

Keywords: kbbug kbfix kbnoupdate kbwizard KB196796

-

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

© Microsoft Corporation. All rights reserved.