Patch: ATL Commerce Pipeline Component Wizard Broken in VC 6

ID: Q214832


The information in this article applies to:


SUMMARY

PipeWiz.exe is a self-extracting executible 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 file is available for download from the Microsoft Software Library:

PipeWiz.exe
Release Date: Jan-21-1999

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services




FileName Size
AtlWiz.reg 1KB
Commerce.ctl 2KB
Readme.txt 1KB


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          : kbfile prodsitesrv3 
Version           : winnt:3.0
Platform          : winnt 
Issue type        : 

Last Reviewed: May 21, 1999