php-windows Digest 19 Sep 2001 19:13:14 -0000 Issue 762

Topics (messages 9411 through 9416):

Re: COM - accessing pointer variables
        9411 by: park
        9416 by: Alain Samoun

Please Please Help!
        9412 by: karthikeyan

text file question thanks
        9413 by: clock

php and mssql
        9414 by: hausii
        9415 by: Frank M. Kromann

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Im afraid I dont know VB script so I cant tell you, to call it from C you
would use:

ITest *ptr = CoCreateObject( CLSID_Test...... )

char str[ 1024 ];
ITest->Get_Version_Str( str, sizeof( str ) );

// str contains the version string

ITest->Release();


Last night I looked through the php source code and am pretty shure it needs
calling something like

$obj = new COM( "Test.test" );
$str = new VARIANT( "a very long string, so that sizeof string can handle
returned string, is there a better way ?", VT_STR | VT_BYREF );

$obj->Get_Version_Str( $str );
$obj->Release();

Unfortunatly, whenever I try creating a variable of type VARIANT ( even if
its just )
$o = new VARIANT();
My script hangs, forever!!!

Also I cant call Release - Its a member of IUnknown so I thought I would be
able to ?


All help will be apreciated.

Park



"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Do you have a VB script showing how it connects to your COM object?
> Alain
>
>
> -----Original Message-----
> From: park [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 18, 2001 3:18 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] COM - accessing pointer variables
>
>
> I have a method into my COM object specified as:
>
> HRESULT Get_Version_Str( [ in, out, size_is( size ) ] unsigned char *str,
> [ in ] unsigned long size );
>
> now how do I call this from PHP ?
> I think that I need to create the arg's as VARIANT but I cant get it to
work
> :(
>
> please help
>
> park
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






I'm not sure, but try:
$str = new VARIANT($obj->Get_Version_Str() , VT_STR | VT_BYREF );
or simply:
 $str = $obj->Get_Version_Str();
Also, are you sure that release() is part of your object definition?

> $obj->Release();
Alain


On Wed, Sep 19, 2001 at 08:50:52AM +0100, park wrote:
> Im afraid I dont know VB script so I cant tell you, to call it from C you
> would use:
> 
> ITest *ptr = CoCreateObject( CLSID_Test...... )
> 
> char str[ 1024 ];
> ITest->Get_Version_Str( str, sizeof( str ) );
> 
> // str contains the version string
> 
> ITest->Release();
> 
> 
> Last night I looked through the php source code and am pretty shure it needs
> calling something like
> 
> $obj = new COM( "Test.test" );
> $str = new VARIANT( "a very long string, so that sizeof string can handle
> returned string, is there a better way ?", VT_STR | VT_BYREF );
> 
> $obj->Get_Version_Str( $str );
> $obj->Release();
> 
> Unfortunatly, whenever I try creating a variable of type VARIANT ( even if
> its just )
> $o = new VARIANT();
> My script hangs, forever!!!
> 
> Also I cant call Release - Its a member of IUnknown so I thought I would be
> able to ?
> 
> 
> All help will be apreciated.
> 
> Park
> 
> 
> 
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Do you have a VB script showing how it connects to your COM object?
> > Alain
> >
> >
> > -----Original Message-----
> > From: park [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 18, 2001 3:18 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] COM - accessing pointer variables
> >
> >
> > I have a method into my COM object specified as:
> >
> > HRESULT Get_Version_Str( [ in, out, size_is( size ) ] unsigned char *str,
> > [ in ] unsigned long size );
> >
> > now how do I call this from PHP ?
> > I think that I need to create the arg's as VARIANT but I cant get it to
> work
> > :(
> >
> > please help
> >
> > park
> >
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




Hi All, 

  I am running PHP4.0.6 in WinNt Workstation.  PHP4.0.6 comes with gd library (PNG and 
JPG support) but no freetype support, so i have dowloaded freetype for windows version 
2.0.4.  These are the files i have downloaded.

  1. freetype-2.0.4-bin
  2. freetype-2.0.4-doc
  3. freetype-2.0.4-lib
  4. freetype-2.0.4-src

  I have read the documentation, it says something about compiling the source files.

  What i really need is steps involved to make freetype work on my system.

  If anybody could provide me with this details i would be really really grateful.

  Waiting for yours earliest reply,

b.karthikeyan. 




hi
Warning: fopen("9-02_counter.txt","w") - Permission denied in
c:\inetpub\wwwroot\9-02_pcounter.php on line 20

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 21

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 22

Warning: fopen("9-02_counter.txt","w") - Permission denied in
c:\inetpub\wwwroot\9-02_pcounter.php on line 20

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 21

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 22

Warning: fopen("9-02_counter.txt","w") - Permission denied in
c:\inetpub\wwwroot\9-02_pcounter.php on line 20

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 21

Warning: Supplied argument is not a valid File-Handle resource in
c:\inetpub\wwwroot\9-02_pcounter.php on line 22

what problem!?
need to download sth!?
or how to solve!?
thanks





is there an other extension for microsoft sql server out there??

the build in extension php_mssql70.dll always occures an error on loading...

thanx for your help

cu






The extension was renamed to php_mssql.dll a while ago. You will need a copy of the 
extension that matches your other php binaries or yoy will have to update to the 
latest version of php.

- Frank

> is there an other extension for microsoft sql server out there??
> 
> the build in extension php_mssql70.dll always occures an error on loading...
> 
> thanx for your help
> 
> cu
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 





Reply via email to