Re: Using DLL with PHP

From: Date: Mon, 09 Feb 2009 16:10:37 +0000
Subject: Re: Using DLL with PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-287975@lists.php.net to get a copy of this message
> > Check out the com [www.php.net/com] functionality > > Bastien > Alrighty, I'm trying to use the COM function, but not getting much of anywhere. This is what I have: <?php // The VB function for reference /*function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _ (ByVal FullPathFrom As String, ByVal FullPathTo As String) As Integer*/ //Create a function in PHP to call the DLL function DMStoTIFF() { $my_com = new COM('D32_CONV.DLL'); $output = $my_com->DTM_CONVDMSToMultiTIFF("C:\TEST\04186177.dms", "C:\TEST\04186177.tiff"); } DMStoTIFF(); ?> But I am getting the error below: *Fatal error*: Uncaught exception 'com_exception' with message 'Failed to create COM object `D32_CONV.DLL': Invalid syntax Any ideas?

« previous php.general (#287975) next »