Method Exportsde debugging is not a problem in VS, reporting errors after publishing to IIS: A call to a COM component returned an error HRESULT e_fail.
Google found that the solution to the problem is the same, no one works.
Later, I searched for a problem at http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=69628, and then I tried to create a temporary connection file to resolve it.
Here is the error code:
protected void Page_Load (object sen
To write an ActiveX Dll first:To create a new VB6 project, the ActiveX DLL names the project P_test, the class name is C_test, and the file contents of the class are as follows: Option ExplicitPrivate Myscriptingcontext as ScriptingContextPrivate MyApplication as ApplicationPrivate myrequest as Request private myresponse as ResponsePrivate MyServer as ServerPrivate MySession as session public Sub OnStartPage (Passedscriptingcontext as ScriptingContext)Set Myscriptingcontext = Passedscriptingcont
My system for playing all the patches of XP (SP2), killing soft for jiangmin KV2005, and enabled the 3721 Internet helper Pop-up Blocker function, can be the latest machine to open the normal Web page often inexplicably pop-up title "Mms.tjcq2.com" a window, this want to be very simple to fix, Can search the registry and fix ie are useless, very annoying! Finally, online search two solutions, do not dare to enjoy alone.
Method One:
In IE "tool" =
Look at the hands of some gadgets, many are single files but can create shortcuts, so rummaged Google, finally in the Russian forum RSDN found a very powerful class.
class file Download: Http://asen.googlecode.com/files/Shortcut.cs (no annotation Lite)RSDN Original post: Http://www.rsdn.ru/forum/src/3098615.flat.aspx (with English notes)
Using the method is simple, add the file to your project and use it like the COM component, but slightly different
Retrieving a component with a CLSID of {79210e58-99eb-45d0-8890-763efeaa143f} in a COM class factory failed because the following error occurred: 80040154.
Workaround:
1. If you are developing an environment that does not have the RTX server installed, register the associated DLL you called. Do not know how to register a DLL, into Baidu to check registered DLL
2. If you have a RTX server installed in your development environment, and your system
some common problems in using COM components (or ActiveX controls) in Web pages
1. Insert controls on the page
The easiest and most common way to invoke an ActiveX plug-in in an HTML page is to:
The id attribute, like the ID of other elements in HTML, is the unique identifier of each element in the DOM tree. The ClassID attribute is a very critical attribute here, and it is through him that IE can correctly find the ActiveX to invoke. Each ActiveX
Design
XM2 OnlineHTML xm2.comFLASH XM2.COM/XM6/OrderThe good website why can be called is a good website, from the visual demand angle: Has the impact or the comfortable visual effect plus the production is excellent, this website has succeeded, if adds some creativity. That will hook a part from the eyeball!LayoutThe layout of both HTML and Flash is very positive! Button-downColorI was left with the impression that it was very positive red, very sol
Disclaimer: This code is based on CodeProject's article, "A Complete ActiveX Web control Tutorial," and therefore also follows code Project Open License (Cpol).
In the previous article, COM Component Development Practice (VII)---Multithreaded ActiveX controls and automatic resizing of ActiveX controls (top) describes the basic requirements for using multithreading in ActiveX controls and presents a simple threading model, but there are unexpected pro
One, reusing C + + objects using abstract base classes
In the previous article, COM Component Development Practice (IV)---from C + + to COM:P Art 1, we've encapsulated the C + + object that we're reusing into a DLL, and the Declaration and implementation of the object has been stripped down, But there is a problem: the private members of the object (such as the array variable m_arrtables of the CDB class in our example) are clearly visible to custome
Preface
Because the project needs, began to engage in ActiveX work, read some information, unfortunately are some of the COM principle, there is no practical hands-on things, on the CodeProject read David Marcionek article "1" after a lot of harvest, But there are also some annoying little problems, so on the basis of some of the easy wrong points to do small notes. This copyright belongs to David Marcionek.
Brief introduction
In this article, we'l
First, the preface
Finally wrote the tenth time, I have been looking forward to writing this back content Yes, why? Because automation (automation) is a very common, very useful, very exciting one of the COM features. As WORD, EXCEL and other OFFICE software provides a "macro" function, even we use the VC development environment also provides the "macro" function, more because of HTML, ASP, JSP, etc. to rely on scripting (script) support, but also re
This article continues to introduce the basics of Google Earth COM API development, as compared to the third article:
1 increase the mouse wheel support, you can zoom in, zoom out. This feature utilizes the HookAPI.dll provided in the previous article to implement
2 Read Placemarks (location in Google Earth interface) and show, hide
3 Read all layers, show and hide
Next, continue to put the code:
1, mouse wheel event, to achieve magnification, re
Three, purely manually create a COM component
1, from the construction project to the implementation of registration
In this process we will complete three steps: Create DLL entry function, define interface file, implement registration function
1.1 Create a type Win32 DLL project
Create a Win32 DLL project called Mathcom.
In the second step of the wizard, select the "A smiple DLL project" option. Of course, if you choose an empty project, then yo
Today I went to SQL Server 2005 and installed it for research.
The installation process was not very smooth, mainly due to COM + errors. I searched the internet and solved the problem as follows:
The installation is successful as follows.
Warning for COM + directory problems during sql2005 Installation
The installation of sql2005 failed. I thought the problem was caused by the
1.COM Technology Overview
COM represents the Component Object model, the software development technology that Microsoft promotes. The application software developed by COM specification has the powerful function, mainly has the following several points:
COM is a binary programming specification that allows you to wri
COM + was already generated as early as the window2000 was released and integrated into the operating system,
The runtime is in the form of a service. COM + adds a series of MTS (a system service that
Used to manage persistent data in a database and also to handle persistent message queues and file systems in transactions
Service
1, transaction services: It ensures the integrity of the data in the distribut
Details about com single-threaded suites
1 Introduction
Advanced com projects often need to pass objects across threads to call these object methods in different threads to stimulate their events. The following article is intended for junior com developers who have basic com knowledge (such as understanding the iunkown
When I was working on a project a while ago, I encountered the call and use of the COM component. At that time, I had a good research, so I had to get through the intermediate link. Now I wrote it to help you, there are four types:
1. In vs2005, C # compiles a DLL and calls it using C ++.
2. Use vc6.0 to call the COM component written in C # In vs2005
3. Compile COM
The excerpted article is not original. For the sake of clarity, no source code is provided. The example should be taken to the original article link below. :)
Http://dev.csdn.net/Develop/article/article/25/25203.shtm
3. Create a COM component manually1. From Project Creation to registrationIn this process, we will complete three steps: Create the DLL entry function, define the interface file, and implement the registration function.1
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.