Example of Operating SQL Server database in C ++

Source: Internet
Author: User
C ++ can import msado15.dll to operate SQL Server or access database. msado15.tlh and mmsado15.tli files are generated based on the parameters during import, these two files encapsulate the COM component class in msado15.dll in smart pointer.

For how tlh and TLI encapsulate COM component classes as C ++ classes, Let me give an example of the connection class in ADO.
There is a COM component class in msado15.dll: Struct _ Declspec (UUID ( " 00000550-0000-0010-8000-00aa006d2ea4 " ))
_ Connection: connection15
{
//
// Wrapper methods for error-handling
//

Hresult cancel ();

//
// Raw methods provided by Interface
//

Virtual Hresult _ stdcall raw_cancel () =   0 ;
} ;

The

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.