TESTHR(pConnection1.CreateInstance(_uuidof(Connection))) Open a connection using OLE DB syntax. Void PrintProviderError(_ConnectionPtr pConnection) #include "stdafx.h" // ConnectionStringSampleCpp.cpp // compile with: /EHsc //#import "msado15.dll" no_namespace rename("EOF", "EndOfFile") #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "EOFile") // Function declarations inline void TESTHR(HRESULT x) ConnectionString.cpp : Defines the entry point for the console application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |