Using ActiveX control inetctls.inet to implement news thieves ' application skills in ASP
Source: Internet
Author: User
I need to add a lot of news or other articles to maintain the website these days. Because often to a website to find articles, so I think, can do a program, specify a URL, let ASP to search this site all the articles, and then the search back to analyze the article, the content of the article saved to the database, Wouldn't it save you a lot of trouble?
Later learned that this idea has long been thought, but also someone did the news thief, Oh, but it is said to be PHP, I have not seen, hehe, anyway reported a development mentality began to work ...
I remember the previous collection of an article on how to use ASP to get someone else's web page, take out a look, hey, no code:
That's not easy. Save as an ASP file debugging, but a debugging, prompted that Creatobject failed, the category is not authorized to use, I faint, this error I have seen the first time, and sometimes the FSO can not be created because the server is off the FSO components, but this will not ah, to the Internet a search, A lot of people say this ActiveX control is from IIS, I faint, do I have a problem with IIS, copy the program to the server's system debugging, or report the same error, I faint. I don't know which file this component corresponds to.
Today in our group to ask the master this question, said is the corresponding file should be msinet.ocx,c:/winnt/system32 found this file, register, good, register successfully, and then debug the program, I faint, or error. Is this file on my computer not available? I faint, downloaded a from the internet, re-register, or not, I cold ~
Continue to find on the internet, hey, suddenly found that a person also encountered problems, but they said to me is not a control, his original text is such:
About VB calling the Mswinsock control
Windows scripts can invoke the Mswinsock control to gain more powerful network access, but that 106KB Mswinsck.ocx (V6.0.89.88) is not a system-wide, which makes the control less practical. Also, the script has to overcome one difficulty in calling Mswinsock.
To "Mswinsock" as the keyword, the use of Baidu search page, you can get at least 3 VBS call Mswinsock Control Example: Get native IP, port scanning and hair in the "black defense" of the "Vbs+mswinsock to create smart UDP back door." However, when you download and register Mswinsck.ocx, and then try those codes, you get a "category not authorized to use (the class is isn't licensed for use)" Error, error number 0x80040112. The authors of those codes seem to think that mswinsock, like normal controls, can be used as long as they are registered with regsvr32, without actually testing its portability. And the person who posts, will not care whether the content can be *, blindly copy and paste it. As a result, all the examples on the web of VBS call Mswinsock are "castles in the Castle" and none of them are running. Domestic so, foreign also. All doubts about the control being unusable are dismissed on the grounds that "need to register". Of course, also have to understand the "truth" of the people, but its solution is to use VB to write an OCX package Mswinsock, this is @#$%^&!.
So, what is "truth"? It's a good idea to search for "category unauthorized use" and error numbers, but the results are not ideal. We need to think backwards, why the original author does not encounter errors. The answer is that the original author of the Mswinsck.ocx is not registered separately, but with VB installed. The difference is that the latter installs the design-time license for the VB Control (Design-time license). There are two types of license for ActiveX controls: Design time (Design-time) and runtime (Run-time). When the compiler calls a control's exe/dll/ocx, the compiler automatically joins the control's run-time license, so "re-write OCX encapsulation Mswinsock" is a viable option. There is no runtime license to invoke Mswinsock directly using a script, when the script host attempts to obtain a design-time license in the registry, and the separately registered Mswinsock does not have a corresponding design-time license, so there is an error.
The VB6 control's authorization key (\Extras\VB6 Controls\vb6controls.reg) is available on the Vs.net installation disk, and the Mswinsock control, including VB6, is normally used after the registry is imported.
I think, is this control is also because of this problem can not be used? Fortunately, the author of this article also shared this registry file, and hastened to download it back. Open a look, indeed there is an Internet Transfer Control 6.0 license Key, this ITC is not exactly what I want? Quickly import to the registry. And then debug the program, I faint, shameful failed bird ~
But the reason for this failure is not to restart the computer, oh, restart the computer, all OK, hahaha. By the way, the original author of the registry file is also sent up, perhaps you can also be useful ~
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.