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.
CoCreateInstance; Release
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