Smartptr (C++) (SQL-DMO)

The Smartptr sample illustrates using specific Microsoft® Visual C++® COM development features to reduce program source size and speed development. The sample shows:

The Smartptr sample is a console application.

Smartptr requires Visual C++ 5.0 or later. Project files for Visual C++ (.dsp and .dsw extensions) are included. In the project files, build configurations are defined for computers using Intel or compatible processors. All configurations create a multibyte character application.

Functions Illustrated

CoCreateInstance; Release

Objects, Methods, and Properties Illustrated

Err; Err.Description; Err.Error; Err.ErrorMessage; Err.Source; QueryResults; QueryResults.ColumnName; QueryResults.Columns; QueryResults.CurrentResultSet;. QueryResults.GetColumnString; QueryResults.ResultSets; QueryResults.Rows; SQLServer; SQLServer.ApplicationName; spSQLServer.Close; SQLServer.Connect; SQLServer.ExecuteWithResults; SQLServer.HostName; SQLServer.LoginTimeout; SQLServer.NetPacketSize

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.