Access data through Visual C ++ through ADO and OLEDB

Source: Internet
Author: User

In fact, Visual C ++ is not just an editor of C ++. It is mainly based on the Visual integrated development environment of the Windows operating system, and does not allow Visual C ++ to access data, the following describes the access data of Visual C ++.

Third-party specialized tools are available to help you avoid these bugs. This is not easy for a class library of such scale. Don't underestimate this point. Many professional programmers choose VC for it. Although VCL is more abstract than MFC and has a higher level of encapsulation, the resulting development efficiency is limited for experts.

If you encounter a strange problem, after debugging for a long time, you find that not your code is wrong, but a VCL bug, what do you think? Although the possibility of such problems is very small, the effect on the image of VCL is not small. Delphi's IDE occupies too much resources and starts too slowly. It conflicts with some graphics card drivers. There are bugs in VCL, the debugger is not robust enough, and there are no protection measures for unstable third-party controls ......

There are many problems. In this regard, Delphi is not as good as VC. We hope the Inprise can be upgraded to another level. By the way, we can see on the Internet that some people say that Delphi is unstable and there are more than 20 illegal operations in a few minutes. Delphi is indeed not as stable as Visual C ++, but not so. I guess the friend's Delphi installed some problematic third-party controls, which caused frequent errors in Delphi. Try removing those controls?

Inprise is developing the Linux version of Delphi, codenamed Kylix. It may be possible to port Windows programs written in the VCL architecture to Linux Through Kylix. But this is only possible. This is because the compatibility of Inprise is not good at the moment. Earlier versions of Delphi cannot use VCL components of later versions, but earlier versions of Delphi cannot use VCL components. It is true that the software is not Binary-compatible. If Windows 98 cannot run 95 programs, Windows 95 cannot run 3. x programs, and Windows 3.x cannot run DOS Programs, will you still use Windows?

If the Windows 95 program must be re-compiled to run under 98, Will 98 be sold so well? C ++ Builder and Delphi cannot use each other's components, and the file names of the same VCL library are different.

Therefore, it is common for a component to have for D1/D2/D3/D4/D5/C1/C3/C4/C5 in different versions, in addition, the upgrade of Delphi and C ++ Builder versions may increase. We hope that Inprise can solve the compatibility problem of the same brother first. Microsoft's VC has no such problems. The MFC1.0 program can be compiled under VC6.0 without any obstacles.

In general, the integration interface of VC is not as good as that of Delphi. Delphi can compare a bunch of Wizards of VC with only one Object Inspector. Besides, it also includes Code Explorer and ToDo List. However, we can see that Delphi is immature from an early stage. For example, the degree of intelligence and prompt details of the "Automatic completion" function is not as high as that of VC, and the response speed is not as fast as VC.

The MSDN in Visual C ++ is a "Developer's Encyclopedia" with a large amount of information and convenient query, which is more professional than Delphi. Many help items are demonstrated by the source program.
Delphi's OpenTools are fully open to third parties. developers can modify the functions of many Borland companies. In terms of IDE's extensibility, Delphi is better.

Visual C ++ and Delphi have powerful debugging functions, including one-step Visual debugging, breakpoint tracking, variable change during runtime, and variable value obtained by pointing to the mouse. DLL input and output can also be conveniently managed and can be debugged at the source code level.

Visual C ++ allows you to easily see the changes of variables. This includes expanding the structure into a data tree to understand the values of each variable and debugging each step, changed variables are highlighted in red to facilitate debugging. In addition, the block memory inspection of Visual C ++ is more convenient than that of Delphi.

Of course, Delphi also has many considerate nuances. For example, during thread debugging, Delphi can easily view thread changes, but Visual C ++ must bring up a mode dialog box. Database Support is Delphi's strength. This is mainly reflected in the seamless integration of Delphi and BDE, as well as the many ready-made database operation controls provided by Delphi.

This is beyond the reach of VC. Currently, Delphi supports three database access methods: BDE, ADO, and InterBase. All methods can be dragged to the application for visualization. It is precisely because of Delphi's packaging of database classes that users do not have to intervene in the database from the beginning to the end in Visual C ++. This significantly improves the development speed.

Using the WebBroker control in Delphi can also easily construct database-based Web pages and manage Web databases through HTML. Visual C ++ uses ADO and OLEDB to access data. Many ActiveX controls can also add database functions. However, there is no desktop database like Paradox, And the Access function is too weak. Maybe SQL Server is a good choice.

  1. How to Write C ++ project development and project plan correctly
  2. Summary Notes on learning and exploring C ++ library functions
  3. In-depth demonstration of high security of C ++
  4. Describes in detail how to accurately Write C ++ languages.
  5. In-depth demonstration of high security of C ++

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.