PHP4 already supports Microsoft's COM technology. However, the documentation is rarely mentioned in the COM section.
Here are a few examples that I have tried. I hope these give you some idea. Note that these can only be run in 32-bit Microsoft
Under Windows platform.
Activating ADO with PHP
ADO is Microsoft's database object technology. ADO includes objects that connect to a database, and a Recordset objec
the document.
We create a visual Basic COM component (an ActiveX DLL), call it through an ASP application, and pass the necessary parameters to it. Components essentially use the Microsoft Word Object Library to create a reference to a Word document that will pass parameters. All of this is done on the server because there are many advantages to this approach.
The most important of these is the Since.dll running within the program (in the same memo
Require_once ('.. /class.phpmailer.php ');
$mail = new Phpmailer ();
$body = "I finally sent the mail successfully!" Oh! Goodboy xxxxxxx! Send mail with SMTP
$mail->issmtp ();
Mail server
$mail->host = "smtp.126.com";
$mail->smtpdebug = 0;
Using SMPT validation
$mail->smtpauth = true;
User name for SMTP authentication
$mail->username = "xxxxxxx@126.com";
Secrets of SMTP Authentication
$mail->password = "Pas
Problem:
I want to write an application that supports ActiveX document Plug-ins (Plug-ins). To create a menu of installed Plug-ins, I scan the registry for installed ActiveX components when the program starts. Create an instance for each ActiveX component and query for a specialized interface called Imyappplugin. If this interface exists, then I think this component is the plugin that my program wants. This does not seem to work, especially if you have more than one ActiveX component installed.
The object-oriented idea is difficult to adapt to this distributed software model, so the idea of componentized programming has developed rapidly.
According to the idea of componentized programming, complex applications are designed into small, single-functional component modules that can run on the same machine, it can also run on different machines.
In order to implement such an application, some extremely detailed specifications are required between the build program and the build program. On
first, the basic knowledge of COM components introduction:
1, what is COM
COM is a Microsoft set up a component of the specification, the purpose is to achieve the reuse of components, whether you are in C, DELPHI, VB what language to write, as long as the observance of this specification is COM components, can be inv
This example describes the method of initializing COM components in C + +. Share to everyone for your reference. Specifically as follows:
Use BCB here
Initialization is required when using components such as Tadoconnect
Call Interface:
?
1 2
CoInitialize (NULL);//Initialize COM suite couninitialize ();//Free COM Suite
Called in the
retrieving a component of the CLSID {00024500-0000-0000-c000-000000000046} in a COM class factory failed because of the following error: 80070005 access denied. (Exceptions are from hresult:0x80070005 (e_accessdenied)). Workaround: (EXT)http://blog.csdn.net/wzhibin/article/details/1816690In. Net wrote a related Excel b/s program, deployed to 2003 Enterprise Edition of the server encountered this error: Retrieving a
See 265 Network technology company president Cai Wen wins, his 265.com has been transferred from the marvellous courtyard to move out to Beijing East three ring edge from the international trade not far from the city of Fuli.Many people have described the courtyard: "The courtyard is located in the Beijing Palace near the South Pool, although adjacent to the bustling Wangfujing Street, this alley is isolated like quiet and serene." Is optimistic about
, the mailbox is they adhere to the user's powerful weapon, or can say, mailbox is the reason why users choose them. For such an important point, TOM. COM but did not do well in advance preparation, so scold sound is inevitable;
6, through the Tom.com home page of this revision we can come to a point of view: Tom will be the main entertainment. This can be seen from the customizable module on its home page, in all the modules that can be added entert
This example describes the method of initializing COM components in C + +. Share to everyone for your reference. Specifically as follows:
Use BCB here
Initialization is required when using components such as Tadoconnect
Call Interface:
CoInitialize (NULL);//Initialize COM suite
couninitialize ();//Free COM Suite
Called in the DLL Portal:
static bo
First, prepare
Google Earth provides a personal free version, plus version, Pro version, personal development only installs the personal Free Edition to be possible, if needs more function, then only each year turns over to purchase the Professional Edition
So far, the two development interfaces of GoogleEarth have been relatively few, the function is too weak, only provides 1.0 class library.
GoogleEarth COM API Reference documentation can be foun
. NET technology is the next-generation platform technology that Microsoft vigorously promotes. Since the formal release of. NET Technical Architecture Beta2, this technology has gradually become mature and stable. According to Microsoft's platform system occupancy rate, we can easily imagine that in the next year or two. NET technology is bound to become a mainstream technology platform, and the most important premise for a new technology platform to develop rapidly is: he will not abandon the
First of all, this test is not successful, it is only feasible on this machine, and the test fails on different machines. The GUID may be incorrect or not registered successfully.Now that we've spent the whole morning studying, I'm going to summarize1. Online said to create an SNK certificate, but not created or can. Just can't put it in the GAC. It seems to be placed in the file's current directory as well. (GAC is a general DLL directory similar to System32, which corresponds to the DLL to be
1 new Class library Mytestdll
2 Right-click Project "Mytestdll"-"Properties-" Generate-"Check for COM Interop registration"
3 Open AssemblyInfo.cs file modification [Assembly:comvisible (true)]
4 Open the Visual Sutdio 2008 Command Prompt line tool input Guidgen.exe Select Define_guid Click New GUID
5 Code
1, each class name corresponds to an interface name, the interface name is the class name preceded by an up
: virtual HRESULT __stdcall onredoeditoperation (), very simple!! If there are a lot of do not understand, then quickly look at the knowledge of COM. See, huh? We implement the Iworkspaceeditevents interface function once.
Notice that we added a public ccomobjectroot to the class definition, why? No longer explained here, the right to be necessary. Want to know the reason, oneself reference com aspect know
example of context conversion in the program. If you test this code, it will run, but please
Do not do this within your own application.
Private Sub Dostuff ()
% >
This is End Sub
% >
Programmatic code has some other benefits as well. First you'll find it easier to reuse the parts of the code that are included in the program. Secondly, to
Fewer lines of code are required to achieve the same purpose. Third, you will begin to develop a large reusable code base. At first it's
The form is. inc file
Yz01.com provides 300M free php space for you,
01: Not allowed to place there is illegal Chinese law, pornography content.02:5 Applications are available this time. 5 applications were released successively.03: Please pay attention to the latest announcement.04: This station provides free 100m-flow 3g/cp/php/sql/US spaceSpace size: 100MB (site maturity of more than 200 IP, can be upgraded to 200MB, 400M or more space, please have the strength of the
Problem:
Application-specific permission settings do not grant user NT a local boot permission for COM server application (CLSID {dcbca92e-7dbe-4eda-8b7b-3aaea4dd412b }) Uthority\system SID (s-1-5-18). You can use the Component Services Administration tool to modify this security permission.
Solve:
1, run regedit. Then search dcbca92e-7dbe-4eda-8b7b-3aaea4dd412b, search to the right side of the box AppID REG_SZ string value is {B292921D-AF50
Profile
This step-by-step article describes how to create a Component Object Model (COM) component for use in Active Server Pages (ASP).
COM components for use by ASP
Create a new ActiveX DLL project in Visual Basic.
Name the project VBASPProject and name the class Vbaspclass.
Paste the following public methods into the class module:
Public Function GetString () as String
' Return the string Hello world!
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.