On Wed, Feb 11, 2009 at 1:18 PM, Dan Shirah wrote:
> MAYBE a little closer to a solution!
>
> //VB for Reference
> Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _
>(ByVal FullPathFrom As String, ByVal FullPathTo As String) As
> Integer
>
> Public Function hello(By
MAYBE a little closer to a solution!
//VB for Reference
Private Declare Function DTM_CONVDMSToMultiTIFF Lib "D32_CONV.DLL" _
(ByVal FullPathFrom As String, ByVal FullPathTo As String) As
Integer
Public Function hello(ByVal name As String) As String
hello = "Hello" & name & "Worl
>
> Just guessing as I haven't used the PHP COM stuff, but what do you get
> if you change ByVal to ByRef?
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
Ooops! My fault! I created a new dll so I could keep the currently working
one and forgot to register it..
Registered and it allowed
Dan Shirah wrote:
>> It doesn't appear that your function accepts a parameter. What does
>> this do:
>>
>> //VB
>> Public Function hello(ByVal name As String) As String
>>hello = "Hello " & name & "!"
>> End Function
>>
>> //PHP
>> echo $new_com->hello("Dan");
>>
>> --
>> Thanks!
>> -Shawn
>>
>
> It doesn't appear that your function accepts a parameter. What does
> this do:
>
> //VB
> Public Function hello(ByVal name As String) As String
>hello = "Hello " & name & "!"
> End Function
>
> //PHP
> echo $new_com->hello("Dan");
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
Shaw
Dan Shirah wrote:
> Alrighty, so I went a different route...
>
> I created my own ActiveX DLL...one that I know I can register.
>
> Starting out really simple:
>
> //My VB code
> Public Function hello() As String
>
> hello = "Hello World!"
> End Function
>
> //My PHP code
> function Hell
On Tue, Feb 10, 2009 at 11:59 AM, Dan Shirah wrote:
> Alrighty, so I went a different route...
>
> I created my own ActiveX DLL...one that I know I can register.
>
> Starting out really simple:
>
> //My VB code
> Public Function hello() As String
>
> hello = "Hello World!"
> End Function
>
> /
Alrighty, so I went a different route...
I created my own ActiveX DLL...one that I know I can register.
Starting out really simple:
//My VB code
Public Function hello() As String
hello = "Hello World!"
End Function
//My PHP code
hello();
echo $output;}
Hello();
?>
So, after I register th
On Mon, Feb 9, 2009 at 3:21 PM, Dan Shirah wrote:
> H, maybe it's not a problem with the DLL I'm trying to access because
> just doing a simple:
> $my_com = new COM("Excel.Application");
>
> Gives me the same error:
> *Fatal error*: Uncaught exception 'com_exception' with message 'Failed to
>
H, maybe it's not a problem with the DLL I'm trying to access because
just doing a simple:
$my_com = new COM("Excel.Application");
Gives me the same error:
*Fatal error*: Uncaught exception 'com_exception' with message 'Failed to
create COM object `Excel.Application': Invalid syntax '
I've c
>
> I believe you do have to register it with regsvr32 for it to be visible.
>
> I think the GUID that Todd mentioned might even work, but I've only
> ever used the ProgID. If you don't know the ProgID that is registered,
> you should be able to find it in the Windows registry after you've
> regist
>
> I can't help much, but this might get you started.
>
> 1) Does the DLL you are trying to use actually supports COM. I know some
> don't.
>
> 2) I'm pretty sure that the string you pass to new COM('...') should
> be the name the class as registered with Windows, not the actual file
> name. They
> -Original Message-
> From: Andrew Ballard [mailto:aball...@gmail.com]
> Sent: Monday, February 09, 2009 11:21 AM
> To: Dan Shirah
> Cc: Phpster; PHP-General list
> Subject: Re: [PHP] Using DLL with PHP
>
> On Mon, Feb 9, 2009 at 12:10 PM, Dan Shirah
> wrote:
On Mon, Feb 9, 2009 at 12:10 PM, Dan Shirah wrote:
>> I can't help much, but this might get you started.
>>
>> 1) Does the DLL you are trying to use actually supports COM. I know some
>> don't.
>>
>> 2) I'm pretty sure that the string you pass to new COM('...') should
>> be the name the class as r
> -Original Message-
> From: Andrew Ballard [mailto:aball...@gmail.com]
> Sent: Monday, February 09, 2009 10:30 AM
> To: Dan Shirah
> Cc: Phpster; PHP-General list
> Subject: Re: [PHP] Using DLL with PHP
>
> On Mon, Feb 9, 2009 at 11:10 AM, Dan Shirah
> wrote:
On Mon, Feb 9, 2009 at 11:10 AM, Dan Shirah wrote:
>>
>> 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:
>
> // The VB function for reference
> /*function DTM_CONVDMSToM
>
> 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:
DTM_CONVDMSToMultiTIFF("C:\TEST\04186177.dms",
"C:\TEST\04186177.tiff");
}
DMStoTIFF();
?>
But I am getting the error below:
*
Check out the com [www.php.net/com] functionality
Bastien
Sent from my iPod
On Feb 6, 2009, at 15:58, Dan Shirah wrote:
Howdy,
I'm looking for a little guidance here.
I'm trying to re-write a VB function in PHP.
This is the function I'm working with:
Private Declare Function DTM_CONVDMS
18 matches
Mail list logo