C # Development BHO Program (citation)

Source: Internet
Author: User

A C # can also be written BHO program because Eve's official forum sealed off the signature map function, so you want to write a BHO plugin to "forge" the signature map. Several C + + programs have been studied, but they are always not allowed to respond to HTML events within the WebBrowser. This way, when you open the reply page, the signature is added below the text area. A C # implementation was discovered, although only a simple sample of this basic function was done, but it is good news that it is not possible to use ATL and C + + to do this kind of BHO program. The registration procedure of the BHO program written by the two C # is not to be discussed, and it is quite easy to extend it with a simple example of a frame type. After the DLL file has been generated (rather small), how do I register this dll for the BHO plugin? It's not going to work with Regsvr32, obviously. NET support has also been updated accordingly. The appropriate registration tool is regasm. This program can be found under the root disk (should be installed with the. Net FrameWork 2.0 release) RegAsm Bho.dll can write the registration entries, however, the correct bho.dll is not working properly (not loaded), as required by the example document, with/ The codebase parameter is registered before it can be run normally. It is estimated that the new IE has a soft security requirement for the BHO plug-in, so unsigned plug-ins (such as self-written bho.dll) cannot be loaded. /codebase, however, is mandatory to register bho.dll in the form of a signed control, so be sure to add the/codebase option. Automatic recognition of three-text file encoding in the process of encoding, because the original XML random selection method to read from a fixed text file, the corresponding text file encoding problem also arises (XML can be specified in the attribute encoding in the C # default encoding consistency), and the text file written in 2003 , the default encoding for DBCS, debugging displayed on the forum in the Chinese characters as garbled, and then found a probe text file encoding class added, normal. Java and C # these late-appearing programming languages basically use Unicode encoding, which will bring great convenience to the internationalization of software products. However, the current operating system due to the time of day and night, the character encoding processing each has a different, this must be overcome.   Due to the use of the MSHTML library, naturally in the release of the corresponding files (nearly 10M), so the example author made a small library of dozens of k, only the plug-in used to put some of the functions. The method of concrete production is still unknown. What is most urgent to know is that the ability to capture HTML events triggered by HTML elements in a document (such as form submissions, button clicks, and so on) is significant in addition to capturing the outer WebBrowser events.    above full text citation: httP://blog.sina.com.cn/s/blog_55215b6f0100m19e.html

C # development BHO Program (citation)

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.