To build a custom task with a user interface, use the ATL custom task basic template. This template is included in Microsoft® SQL Server™ 2000 Data Transformation Services (DTS) sample programs. The basic template does not support a custom user interface. For more information about DTS samples, see DTS Programming Samples.
To install the ATL custom task basic template, do the following:
You can create an ATL component that includes a custom task class that does not support a user interface by using the Microsoft Visual C++® development environment.
To build a custom task framework from the template
For this discussion, assume you entered DTSCusTskBasic for the project name.
For this discussion, assume you entered TaskNoUI. 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 TaskNoUI Class.
The wizards will create files for the DTSCusTskBasic component and the TaskNoUI class 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 you add any custom code, Visual C++ installs a custom task that appears in the Task menu of DTS Designer and can be included in a DTS package. When added to a package, the task uses the DTS default icon and displays the DTS default property grid. However, this task will not perform any function when the package is run. For more information on implementing and testing a custom task, see Implementing and Testing a DTS Custom Task.