Solved

access COM DLL function from PHP

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses how to create an extensible mechanism for linked drop downs.
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.

759 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

20 Experts available now in Live!

Get 1:1 Help Now