The Sample Import Filter

Writing a new import filter entails creating a 32-bit DLL that implements all of the predefined API functions, and then copying this DLL to the folder where SBCM is installed. This SDK has three major sections:

To make the task of creating a new import filter easier, the SBCM Filter SDK includes a sample filter project created with Microsoft Visual C++ version 6.0. You can compile the sample project and run it within the SBCM environment to create simple hard-coded data. The sample illustrates the basic requirements of a filter; it does not perform any file input/output (I/O).

The sample project includes the following files (among others):

The Aaxyz.cpp file contains an implementation of each API function that every import filter must support. By compiling the project and stepping through the code, you will learn the sequence in which the Import Wizard calls the API functions. Also, you can use Aaxyz.cpp as a template, studying and modifying it as necessary while you create your own import filter. Comments in the code identify areas where you will typically need to make modifications. For most import filters, these modifications include: