Solved

access COM DLL function from PHP

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
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 …

726 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