Solved

access COM DLL function from PHP

Posted on 2007-12-06
1
906 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
stormist earned 500 total points
ID: 20459459
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to implement server side field validation and display customized error messages to the client.
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.
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 …

688 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