Re: Funciones COM
| From: | César González Revilla | Date: | Tue, 28 May 2002 17:16:51 +0000 |
| Subject: | Re: Funciones COM | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-23169@lists.php.net to get a copy of this message | ||
El Mar 28 May 2002 18:33, escribió:
> Hola a todos estoy tratando de utilizar las Funciones COM pero siempre me
> marca este error
>
> Warning: Unable to obtain IDispatch interface for CLSID
> {0006F03A-0000-0000-C000-000000000046}: Server execution failed in
> e:\program files\apache
> group\apache\htdocs\desarrollo\html\pruebas\correo.php on line 2
>
Te pasteo directamente del manual de php.net
(http://www.php.net/manual/es/faq.com.php):
"1. I have built a DLL to calculate something. Is there any way to run this
DLL under PHP ?
If this is a simple DLL there is no way yet to run it from PHP. If the DLL
contains a COM server you may be able to access it if it implements the
IDispatch interface.
[......]
7. What does 'Unable to obtain IDispatch interface for CLSID
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' mean ?
This error can have multiple reasons:
the CLSID is wrong
the requested DLL is missing
the requested component doesn't implement the IDispatch interface "
------
Como puedes leer en la faq de COM del manual, no todos los objetos COM puedes
cargados desde php sino aquellos que tengan unas características especiales
como son disponer de un servidor COM y un interface IDispatch.
La pregunta 7 del faq responde exactamente a tu pregunta. Tu problema es que
:
ó estas metiendo mal el CLSID, en tu caso "Outlook.Application",
ó estas accediendo a una dll que no existe. (Outlook desinstalado)
ó que el objeto com al que accedes no reune los requisitos para ser cargado
desde php.
Salud y suerte...
--
César González Revilla
Eureka Sistemas S.L.
cesar@eureka-sistemas.com