Solved

access COM DLL function from PHP

Posted on 2007-12-06
1
889 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now