To build a custom task with a user interface, use the Active Template Library (ATL) custom task templates, which support a user interface. These templates are included in the Microsoft® SQL Server™ 2000 Data Transformation Services (DTS) sample programs. The basic template does not support a user interface. For more information about DTS samples, see DTS Programming Samples.
To install the ATL custom task user interface templates, do the following:
You can create an ATL component that includes both a custom task class that supports a custom user interface, as well as a user interface class, by using the Microsoft Visual C++® development environment.
To build a custom task framework from the templates
Assume you entered DTSCusTskWUI for the project name.
Assume you entered TaskUISupp. The wizard will fill in the other fields. The COM/Type field is the name that will appear in the Task menu of DTS Designer, You can change it from the default TaskUISupp Class.
Assume you entered UserIF. The wizard will fill in the other fields.
The wizards will create files for the DTSCusTskWUI component and the TaskUISupp and UserIF classes and save them to the project location folder specified in Step 1.
If you build this custom task project from the Build/Build DTSCusTskBasic.dll menu before adding any custom code, you install a custom task that will appear in the Task menu of DTS Designer and can be included in a DTS package. When added to a package, the task will use the DTS default icon. Until code is added to the IDTSCustomTaskUI methods, it will display the DTS default property grid. However, this task will not perform any function when the package is run. For more information about implementing and testing a custom task, see Implementing and Testing a DTS Custom Task.