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.
Go to http://support.microsoft.com/kb/302901/zh-cnoverview
Both Microsoft Office XP and Microsoft Office 2003 support a new unified design structure used to generate applicationsProgramAdd-on programs to enhance and Control Office applications. These external programs are called com external programs. This article gradually discusses the Office com external program and describes how to use Microsoft Visual
COM object createdAnd then how to call the COM component. Here is the method for calling the COM Object in C ++.
There are generally three methods to create a COM object. You can create an object normally and use the cocreateinstance function. If you create an object in a remote system, use the cocreateinstanceex funct
Software methods and COM Support Based on Component Reuse
Zhang YuComputer College, Huazhong University of Science and Technology
SummaryAs a hot topic of research, component models have emerged in an endless stream in recent years. For the interoperability between them, a public component must be available.The underlying framework analyzes various practical factors. com is a feasible choice. This article d
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
Http://china.udotnet.com/cnudotnet_num_416.aspx
One of the new transactions: transactions in DOTNET and COM + (1)One of the new transactions: transactions in DOTNET and COM +
--------------------------------------------------------------------------------
Stingy god
2002-4-16
Article type: In-Depth
Difficulty level: 6/9
Version: 2.32
COM + appeared earlier tha
COM component program: module, which can be a dynamic connection library (DLL) executable program (exe), called in-process component) External process component (out-of-process component ).
COM Object: it is based on binary executable code. Therefore, COM objects are language-independent. This feature makes it possible to interact with Component Objects develop
PHP can operate COM and DCOM objects on Win32 platforms. 1. I have created a DLL to calculate something. Is there any way to run this DLL in PHP? 2. What does 'unsupported variant type: xxxx (0 XXXXX) 'mean? 3. Is it possible to operate on visual objects in PHP? 4. Can I store COM objects in the session? 5. How can I capture com errors? 6. How can I generate DLL
The previous article said how to design a pseudo-com, now let's see how the real COM library is modular.First of all, the previous section of our implementation of pseudo-com there is nothing to make you uncomfortable place? Yes, I believe a lot of people are very uncomfortable with the need to load DLLs and export interfaces themselves , Microsoft is also very u
Differences:
(1) Static Connection Library as the targetCodeIs linked
(2) the dynamic Connection Library and the target code are two parts.
(3) The COM component is called by registering the location and interface of the dynamic library in the registry.
Advantages and disadvantages:
(1) Static disadvantage: Make the targetProgramIncreased volume, not flexible(2) Advantages of Dynamic Link Library: to modularize the program, as long as the in
What is a COM component?What kind of software products do users need? This is a multi-choice question, but it is highly efficient and robust. How can a software developer meet users' needs? Ensure that the backward compatibility with previous versions is not damaged during application upgrade. System services must be extended without a specific operating system. Object-Oriented Programming is obviously a revolutionary change. Using an object-oriented
Computer" security settings here, by modifying the registry to open this option, you can give us more choices when dealing with ActiveX controls, and have a greater impact on local computer security.Here's how to do this: open "Run" from the Start menu, enter Regedit.exe in the "Run" dialog box, open the Registry Editor, and click the "" "number in the previous page to expand to: Hkey_curre-nt_user\software\microsoft \windows\currentversion\internetsettings\zones\0, find the DWORD value "flags"
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.