Solved

access COM DLL function from PHP

Posted on 2007-12-06
1
897 Views
Last Modified: 2013-12-13
I have create a COM DLL and registerd it, now i have to access COM DLL function from PHP but it gives
following error

Warning: (null)(): Unable to obtain IDispatch interface for CLSID {E3F720FE-F8C5-4CC8-972C-30EFD5B437EC}: No such interface supported in C:\Inetpub\wwwroot\System.php on line 4
PHP has encountered an Access Violation at 010C90A8

code is

<?php

// create a reference to a new COM component (Word)
$word = new COM("MyMathDLL.MyMath") or die("Can't start Word!");

// create a new document in Word
$sum = $word->MyAdd(1, 2);

print "Sum = $sum<br>";

?>
0
Comment
Question by:annapolistech
1 Comment
 
LVL 10

Accepted Solution

by:
stormist earned 500 total points
ID: 20459459
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Syntax Error 4 32
parse url to form? 7 25
Inserting data into database 10 36
MSSQL - Lock Row from reading by other programs 9 37
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question