how to invoke c# API dll using php: COM?

how to invoke c# API dll using php: COM?

am 14.09.2007 06:25:01 von Viola Holownia

Does anybody knows how to invoke c# API dll using COM: php?

Here is my short description: I have to use c# dll from php to call
some function and get back whatever these methods return.

Don't really know how to start with that :(
Any help appreciated.

Viola

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: how to invoke c# API dll using php: COM?

am 14.09.2007 06:37:57 von Ariz Jacinto

------=_Part_211_20742791.1189744677802
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Viola,

have you tried this?

$Obj = new COM("RegisteredDLLName.ObjectName") ;
$Obj->foobar();


Reference:
http://us.php.net/manual/en/ref.com.php

--
Ariz Jacinto



On 9/13/07, Viola Holownia wrote:
> Does anybody knows how to invoke c# API dll using COM: php?
>
> Here is my short description: I have to use c# dll from php to call
> some function and get back whatever these methods return.
>
> Don't really know how to start with that :(
> Any help appreciated.
>
> Viola
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

------=_Part_211_20742791.1189744677802--

Re: how to invoke c# API dll using php: COM?

am 14.09.2007 07:22:38 von Viola Holownia

hey!
thanks for the respond,

I know how to handle that from php, but have no idea how to register
this dll and how to work with it (sorry that I wasn't more specific in
my previous post).

When I try to register this dll using:

>> regsvr32.exe WebLabAPI.dll - I get following error:
the module "WebLabAPI.dll" was loaded but the entry point
DLLRegisterServer was not found;

I do have install Visual Studio 2005 on Vista - no idea why I can't
register this dll :(

help!
many thanks!
viola



On 9/13/07, Ariz Jacinto wrote:
> Hi Viola,
>
> have you tried this?
>
> $Obj = new COM("RegisteredDLLName.ObjectName") ;
> $Obj->foobar();
>
>
> Reference:
> http://us.php.net/manual/en/ref.com.php
>
> --
> Ariz Jacinto
>
>
>
>
> On 9/13/07, Viola Holownia wrote:
> > Does anybody knows how to invoke c# API dll using COM: php?
> >
> > Here is my short description: I have to use c# dll from php to call
> > some function and get back whatever these methods return.
> >
> > Don't really know how to start with that :(
> > Any help appreciated.
> >
> > Viola
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/ )
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php