PRB: Project in PDK MMC Sample Does Not Build SnapIn Properly (182460)
The information in this article applies to:
- Microsoft Management Console 1.0, when used with:
- the operating system: Microsoft Windows NT
This article was previously published under Q182460 SYMPTOMS
The project file for the Microsoft Management Console (MMC) Sample located
in the Platform SDK does not build and register the SnapIn properly. This
article outlines steps you can take to modify the sample so that it will
build and execute properly.
CAUSE
The sample is incomplete. The SnapIn that is created does not properly
register itself.
RESOLUTION
You need to take the key values described in the .ini files and convert
them to registry script files. To do this, modify the project file as
follows:
- Add the About.Cpp file to the file list.
- Change the options on the About.Cpp file so that it does not try to
compile the precompiled headers file. Stdfx.Cpp is the file that insures
that these headers are properly handled. Change this option as follows:
- Click Projects, and then Settings.
- Expand the Source Files folder.
- Highlight the About.Cpp file.
- Click the C++ Property Page.
- Set the Category to Precompiled Headers.
- Click Use Precompiled Header File.
- Type stdafx.h in the edit control for Through Header:.
- Click the SnapIn Icon at the top.
- Select the General Property Page.
- Use the MFC libraries. It does not matter if you statically link to
them or use them as a shared DLL.
- Click OK.
- If you are working with the debug configuration, you need to copy the
debug versions of the MFC DLLs and libraries in the appropriate
directories on your system.
- Register the SnapIn. The *.ini files included in the sample contain the
appropriate key values. These files need to be converted to Registry
script files. The contents of the registry script files are included in
the MORE INFORMATION section of this article.
- Once the SnapIn is properly registered, it should appear in the Add
Remove SnapIn box.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbprb KB182460 |
---|
|