tailieunhanh - Sams Teach Yourself Database Programming with Visual C++ 6 in 21 Days phần 7

dữ liệu lớp giày để tổ chức các khóa chính từ bảng cơ sở dữ liệu. Nếu các lớp khác bắt nguồn từ athleticshoe, chẳng hạn như crosstrainer, bạn sẽ muốn tạo ra một bảng CrossTrainers có chứa các lĩnh vực duy nhất, trên, lưỡi, ren, chìa khóa chính, và bất cứ điều gì thành viên dữ liệu trong lớp crosstrainer. | Teach Yourself Database Programming with Visual C 6 in 21 days -- Day 16-The Ultimate Database API OLE DB a middleman in the OLE DB architecture. Acting as a consumer of raw OLE DB data sources and as a provides im poPD FMerge ancPSplit Unregistered Version- http that OLE DB data providers don t implement themselves. For instance OLE DB service providers alleviate the need for OLE DB data providers to implement their own SQL database engine. OLE DB offers a query-processing component as a service provider. Developers of OLE DB data providers can use the query-processing service provider if they don t want to implement a query-processing engine themselves. Because OLE DB components provide a consistent interface OLE DB data providers can use OLE DB service providers if they need to in order to offer complete OLE DB functionality to applications. Also some OLE DB service providers provide cursor engines besides query-processing engines. Other service providers built to provide additional functionality will be available in the future. OLE DB extends the capabilities of ODBC by enabling less sophisticated data sources to have data providers written for them. OLE DB extends ODBC but many concepts of ODBC programming have their counterparts in OLE DB. Comparing OLE DB to ODBC Open your ADOMFC1 project. Add a menu titled ODBC and add a drop-down menu item called Simple. Use ClassWizard to implement a command handler in the View class for that menu choice. You need to include the files and in as shown here . include include You also need to use the ODBC import library called in your linker input found under the Project Settings menu shown in Figure . Figure 2 ODBC import library. Inside your command handler add the code in Listing . Input Listing ODBC API Programming 1 void CADOMFC1View OnOdbcSimple 2 _ _ 3 RETCODE retcode 4 HENV henviron 5 HDBC hdbconn 6 HSTMT hstmt 7 char .