ATL Commerce Pipeline Component Wizard Broken in VC 6

ID: Q214832


The information in this article applies to:
  • Microsoft Site Server version 3.0, Commerce Edition


SUMMARY

PipeWiz.exe is a self-extracting executable file that contains two files necessary to use the ATL Commerce Pipeline Component Wizard with Visual C++ 6.

To use the file, place it in a temporary directory and run it. Three files will be generated: AtlWiz.reg, Commerce.ctl, and ReadMe.txt. Commerce.ctl should be renamed CommerceComp.ctl after it is extracted.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:

Pipewiz.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.This feature is available in the latest service pack for Site Server 3.0. For additional information, please see the following article in the Microsoft Knowledge Base:
Q219292 How to Obtain the Latest Site Server 3.0 Service Pack
This feature was first included in Site Server 3.0 Service Pack 3.

In order to use the ATL Pipeline Wizard with Visual C++ 6, it is necessary to add the relevant information for the wizard to the registry entries for Visual C++ 6. The AtlWiz.reg file will make these entries for you. To use the .reg file, simply double-click on the file.

The other file included in PipeWiz.exe (other than the readme) is the Commerce.ctl file. Due to limitations of the software used to generate PipeWiz.exe, it is necessary to rename the file CommerceComp.ctl after it is extracted from the .exe. CommerceComp.ctl has been modified slightly to account for differences in the way Visual C++ 6 handles Wizard extensions. This file should replace the copy in the SDK directory (\Microsoft Site Server\SiteServer\Commerce\SDK\Commerce\Samples\ATLWizard\Template\CommerceComp.ctl) and should be copied along with the other template files to "\Program Files\Microsoft Visual Studio\Common\MSDev98\Template\ATL."

The above fix will enable you to add an ATL Commerce Component via the Insert menu of Visual C++ 6.0; however, the generated ATL code must be modified slightly in order for the component to be recognized by the Pipeline editor. Modify the DLL registration code as follows:

static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
{
//HRESULT hr = _Module.UpdateRegistryClass(GetObjectCLSID(), _T("PipelineTest.PTest.1"), _T("PipelineTest.PTest"), IDS_PROJNAME, THREADFLAGS_BOTH, bRegister);
HRESULT hr = _Module.UpdateRegistryFromResourceD(IDR_PTEST, TRUE, NULL); 


REFERENCES

Q179385 HOWTO: Add Custom ATL Objects to the ATL Object Wizard

Search for "Pipeline Component Wizard" in the Commerce Documentation

Additional query words:

Keywords : ss3sp3fix
Version : winnt:3.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.