Study how to adjust Visual C ++ language by ADO

Source: Internet
Author: User

The following describes how to learn the Visual C ++ language and how to integrate database engineering with various Wizard provided by Visual C ++. Although Visual C ++ does come with drivers of some products, therefore, it is not very difficult to set up your own interface token.

Once used properly, Visual C ++ is an indispensable database management tool. For large-scale applications, even if you still want to rely on rad languages such as visual basic, consider Visual C ++, it creates a small program that provides underlying access and real-time access.

In fact, you may not have imagined that the market for Visual C ++ database applications has great potential. As people are increasingly using laptops and palm computers on their journeys, database applications on these two types of computers become increasingly common.

You may be able to adapt to access applications on today's laptop, but when talking about hard disk size or memory requirements, older laptops in the company may not meet requirements. When running the access application on a windows ce-running PC, it will certainly fail. In this new field of the database market, Visual C ++ provides invaluable tools.

Web links talk about using Visual C ++ and databases, but you are not alone. From the very beginning, there was a dedicated database newsgroup to help with database creation techniques, such as microsoft. public. access. However, these newsgroups provide general information, which is not all that useful for writing applications.

Microsoft. public. vc. database and microsoft. public. vc. mfcdatabase are newsgroups dedicated to Visual C ++. If you decide to use odbc to access the database, you may also need to check the microsoft. public. odbc. sdk newsgroup, which is not just about sdks. Programmers interested in the latest technology can refer to microsoft. public. ado newsgroup, or microsoft. public. oledb object links and embedded databases) newsgroups, the former discusses ado, and the latter discusses the basic technology of ado. There is an ado sub-group in microsoft. public. ado. rds, which discusses remote data access.

Since all the doubts are eliminated, the confidence of most people is enhanced. Next we will introduce two main methods to enable c ++ to access data in the database: Open Database Connection of odbc) and adoactivex data objects ). In this chapter, we will introduce these two types of access methods, but I think you will find that.

  • Visual C ++ is old and has to give way
  • What can be done by Visual C ++ projects?
  • Quick introduction to Visual C ++ IDE
  • Idle Visual C ++ Ribbon interface
  • Interpreting the specific examples of Visual C ++ 2005

The ado method is used for new programming scenarios. It overcomes many limitations of earlier technologies and relies on microsoft's new underlying access method ole-db object link and embedded database ). Later in this book, we will see how fast it is to collect database engineering with various guides provided by ado and Visual C ++.

Note: odbc is usually used to access data in non-microsoft databases that do not have the ole-db feature. The 16-bit odbc driver may work very slowly. Odbc is famous for its slowest data access method, but it is a pity that when ado or dao does not support a Database Manager and odbc supports this database manager, in this particular case, you still need to Use odbc.

In most cases, this means obtaining the required driver from the database vendor, although Visual C ++ does include some product drivers, if you are using some mysterious features of the Database Manager, it is not very difficult to create your own interface token ).

In essence, you always need to Use odbc to access the databases created by dbms products other than microsoft products. These databases do not have the ole-db function. Odbc also requires some additional work to adjust most of the wizard in Visual C ++ for ado.

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.