Rebuilding the ActiveX Data Objects Samples

The ActiveX Data Objects (ADO) samples can be rebuilt on either the Windows 95 or Windows NT platforms. However, the samples only execute on Windows NT, which provides required support for Unicode.

To rebuild the ADO samples using the Microsoft Developer Studio

  1. Start Developer Studio.

To specify the Include Files directory

  1. Click the Settings menu.

  2. Click the Tools menu item.

  3. Click the Directories tab.

  4. In the Show Directories For: pulldown, select Include Files.

  5. Specify the oledbsdk\ado\include directory.

To specify the Library Files directory

  1. Click the Settings menu.

  2. Click the Tools menu item.

  3. Click the Directories tab.

  4. In the Show Directories For: pulldown, select Library Files.

  5. Specify the oledbsdk\ado\include directory.

To create a workspace project

  1. Click the File menu.

  2. Click the Open Workspace... menu item. Select the directory of the sample you wish to rebuild. Open the makefile (.MAK) in that directory. (A project file (.MDP) is created which will capture implicit settings derived from the makefile, and explicit settings made through dialogs. If you open this project file at a later date your settings will be restored automatically.)

To specify the type of MFC DLL

  1. Click the Build menu.

  2. Click the Settings menu item.

  3. Click the General tab.

  4. In the Microsoft Foundation Classes pulldown, specify the desired type of DLL (shared or static, release or debug, etc.)

  5. Make any other custom specifications you need (such as optional listing files, output directories, or debug options).

To rebuild the sample

  1. Click the Build menu.

  2. Click the Build menu item.