Build a Cefglue-based cb/s WinForm project from scratch

Source: Internet
Author: User

Based on CEF, the. Net-packaged XILIUM.CEFGLUE/3, based on this framework, makes it easy to build a built-in browser for your WinForm and other C/s projects.

The Chromium Embedded Framework (CEF) is an open source Web browser Control based on a Google Chromium project that supports Windows, Linux, and Mac platforms.
Cefglue is a C # ported version of this C + + written in the CEF class library. Based on this type of library, we can easily embed the Chrome browser in our WinForm and other C/s projects.
After we introduce the Cefglue class library into our project, we also need to introduce the CEF class library because we need to invoke the C + + method of the CEF class library through P/invoke. So if we want to introduce a browser to our C/s project, we need to introduce these two class libraries.

That's probably the introduction here. At first, the manager of our department asked me to maintain an existing project and try to optimize it. The project is a stand-alone version of the application, due to customer needs (the customer's warehouse is more remote, even not the internet, so can only use C/s to do, but the interface WinForm is ugly, if using WPF, and consumption of memory, and the department did not return to WPF, if using GDI + and redrawing the control, but also trouble, They were in a hurry, so there was this project-the CB/S project based on the Chrome kernel. The manager asked me to understand, the project code gave me, the beginning is a crazy, although the previous play Webbrowes control, but that is based on IE, and is already packaged, quoted under the line, no trouble, this will be new things, or have not heard, so, think of their own to try it, to find information, Then you set up a demo and run, so the understanding will be deeper. Said to dry, a meal sogou and Baidu, found some information, as follows:
Developing Chrome Core Browser "II" (http://www.cnblogs.com/liulun/archive/2013/04/20/3031502.html) based on. Net
The enterprise application management system based on QT WebKit and ExtJS development cb/s structure (http://www.cnblogs.com/liulun/p/3433003.html)
Xilium.cefglue version matching relationship with CEF library (http://blog.csdn.net/hkwlg1314/article/details/52644920)

With these basics, CEF is no longer tarnished, of course I did not study the kernel implementation. So I began to build their own, hey, say it is tears, full screen of English information, look at the eye pain, but still boil over, the following is introduced below, first to two website links, respectively, cefglue and CEF download path:
https://bitbucket.org/xilium/xilium.cefglue/downloads/
Http://opensource.spotify.com/cefbuilds/index.html
For specific use, please refer to:
Use CEF (cefglue) as your client UI (a) (https://www.cnblogs.com/xdoudou/p/3748143.html)

Be sure to pay attention to the version of Cefglue and CEF, otherwise there will be a problem.
The second is the CEF version of the download:

I started to download the debug and release, both of which are only DLLs, no use, and then I downloaded the simple version of the Windows client, the download extracted after the release of the files copied to the WinForm The release under the bin is ready.
Note, be sure to correspond to the CEF and cefglue version, download CEF to download the simple one (as far as I am concerned, I am so much, the rest of the version you can also run, you can download)

Build a Cefglue-based cb/s WinForm project from scratch

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.