Hi all,
I'm trying to get my head around COM and interfaces and I'm making
slow progress but have hit a problem.
I have an IProduct interface and using com_print_typeinfo($iproduct) I
can see it has the following property (amongst others):
/* DISPID=1745027081 */
var $Description;
Hi,
i have a problem regarding some COM objects, especially with
unitializing. It is possible to create a new COM object without
problems, but at the end of each script a message is shown by the
Microsoft Visual C++ Runtime Library:
"This application has requested the runtime to terminate it
Hi,
I have problems fetching data from an special database over a com-based sdk.
With VisualBasic it's not a problem,
but the same code doesn't work with php.
First some Data:
- The database system holds high compressed industrial data and is called
OSI-PI. The system itself is under a
comercial
/Gustav
-Original Message-
From: John Mertic [mailto:[EMAIL PROTECTED]
Sent: Monday, October 08, 2007 3:28 PM
To: Gustav Wiberg
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Com++ Word AND PHP?
Also try doubling up the backslash or using a forward slash on Windows
$word->Documents
or the Windows version of PHP."
Just for you to know :-)
/Gustav
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Monday, October 08, 2007 3:49 PM
To: George Pitcher
Cc: Gustav Wiberg; php-windows@lists.php.net
Subject: Re: FW: [PHP-WIN] Com++ Word AND PHP?
George
George Pitcher wrote:
Gustav Wiberg wrote:
Mis-attributed. This was in my reply to Gustav.
I do this on my WinNT server - in fact its the only thing left
stopping me
from moving to Linux!
"COM functions are only available for the Windows version of PHP."
My point exactly. When I am able
> Gustav Wiberg wrote:
Mis-attributed. This was in my reply to Gustav.
> > I do this on my WinNT server - in fact its the only thing left
> stopping me
> > from moving to Linux!
>
> "COM functions are only available for the Windows version of PHP."
My point exactly. When I am able to create a Wo
ober 08, 2007 3:28 PM
To: Gustav Wiberg
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Com++ Word AND PHP?
Also try doubling up the backslash or using a forward slash on Windows
$word->Documents[1]->SaveAs("C:\\hello2.doc");
--or--
$word->Documents[1]->SaveAs("C:/hello2
Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi
>
> Nope it didn't seem to solve it.
>
> Best regards
> /Gustav Wiberg
>
> -Original Message-
> From: John Mertic [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 08, 2007 3:20 PM
> To: Gustav Wiberg
Hi
Nope it didn't seem to solve it.
Best regards
/Gustav Wiberg
-Original Message-
From: John Mertic [mailto:[EMAIL PROTECTED]
Sent: Monday, October 08, 2007 3:20 PM
To: Gustav Wiberg
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Com++ Word AND PHP?
Perhaps changing the 0
Gustav Wiberg wrote:
I do this on my WinNT server - in fact its the only thing left stopping me
from moving to Linux!
"COM functions are only available for the Windows version of PHP."
From http://php.net/com
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To uns
Perhaps changing the 0 to 1 in the line would fix it, namely:
$word->Documents[1]->SaveAs("C:\hello2.doc");
John
On 10/8/07, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm trying to run Word and save as a document in PHP. I have tested...
>
> $word = new COM("word.application");
> //To s
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]
Sent: Monday, October 08, 2007 3:02 PM
To: Gustav Wiberg
Subject: RE: [PHP-WIN] Com++ Word AND PHP?
Gustav,
> I'm trying to run Word and save as a document in PHP. I have tested...
>
> $word = new COM(&qu
Hi
I'm trying to run Word and save as a document in PHP. I have tested...
Version
echo "I'm using MS Word {$word->Version}";
//It's better to keep Word invisible
$word->Visible = 0;
//Creating new document
$word->Documents->Add();
//Setting 2 inches margin on the both sides
$word->Selection->Pa
I have this problem. I am running a php application , that calls a
dll, through COM ($obj=new COM("foo.dll"), and this works fine.
My problem is that each time i call from a php a function from this
dll, the dll initialiazes again, which happens to be very time
consuming because it reads a lot of
On Wed, 2006-05-24 at 17:44 -0300, Leonardo Dutra wrote:
> Hi,
>
> I'm trying get some features from TAPI3.DLL using COM Support im PHP.
>
> PHP Version: 5.1.4 (CLI scene)
> OS: WinXP
>
> My doubt is how can I call ITAddress::QueryInterface method ? What
> parameters I need here?
Well, I see
Hi,
I'm trying get some features from TAPI3.DLL using COM Support im PHP.
PHP Version: 5.1.4 (CLI scene)
OS: WinXP
My doubt is how can I call ITAddress::QueryInterface method ? What
parameters I need here?
Here's example:
// $address is A ITAdress object
$iTName = new Variant("ITAddressCap
Hi All,
I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and
php is being driven via FCGI from our own web server (TAG).
We create an instance of an in-process COM server using the following
technique:
function GetFactory()
{
static $obj;
static $objSet = 0;
if($o
Hi All,
I have the following bit of code which works fine in a browser window,
but as soon as I try it in cli mode it fails. I have a lot of other COM
stuff which works just fine, just this one. Any ideas welcome.
$oDso = new COM("WinNT:");
$oComp =
$oDso->OpenDSObject("WinNT://DOMAIN/HOST$,user",
I have a COM object "com" with a property "prop". "prop" is an indexed
array. I am using PHP 5.1.0-dev.
None of the following work:
$com->prop(0) = 'blue';
$com->prop(0, 'blue');
$com->prop = array ('blue');
Is there a way to write to an indexed property?
Dale Schell
--
PHP Windows Mailing L
I am working with MS Word through the COM object. I have figrued out how
to do almost everything I need, but I want to insert a page break. This
is the code that I get from the VB Editor:
Selection.InsertBreak Type:=wdPageBreak
I tried this but it doesnt like it:
$word->Selection->InsertBreak(
I am using a VB component for encryption/decryption of data. It in turn uses
the CAPICOM EncryptedData object as provided by Microsoft.
Having instatiated the object successfully, I am trying to run a method on
that object which fails ~60% of the time for no apparent reason.
The weird thing is th
I have a VB component which encrypts/decrypts passwords using the CAPCIOM
EncryptedData object.
Internal to the VB component is an 'On Error Resume Next' statement before
running a method on the decrypt method.
For some reason, if there is an error on the decrypt method, rather than
carry on to t
I have a VB component which encrypts/decrypts passwords using the CAPCIOM
EncryptedData object.
Internal to the VB component is an 'On Error Resume Next' statement before
running a method on the decrypt method.
For some reason, if there is an error on the decrypt method, rather than
carry on to t
> -Original Message-
> From: Weber Bernd-Thomas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 21, 2004 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] COM Object and Acrobat 6
>
> I try to access Acrobat 6 as COM Object. My problem is that I
> don
Hi,
I try to access Acrobat 6 as COM Object. My problem is that I don't know the
aviable methods.
I want to rotate all landscape and then add page numbers.
Any ideas?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I couldn't run the com progam on my server but everthing well on my pc.
The only different is server is using UNIX version while pc is Window
version.
It game me error like this -> "Fatal error: Cannot instantiate
non-existent class: com in
/home/www/hermes/data/program/log_report/TPSpar
where a truck is en route between an origin and destination given
it's departure time and the current time of day.
Hope some of this helps, Marc! Good luck!
-TG
> -Original Message-
> From: M.Staiger [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 8:12 AM
&
Hello NG,
Imagine that you have one machine running iis with php and want to call a
COM-Server (e.g. Word) on a remote machine.Would this be possible? How would
it look like, if this is the call for the local machine : $word = new
COM("word.application");
Thanks,
Marc
--
PHP Windows Mailing Lis
Long subject but, it's a weird problem.
I am running a system that has 1 COM object used in a couple different
spots. Basically the usage is on 3 pages in a 30-40 page system. So it
is not that many locations.
I have noticed that if I am accessing a script at the same time a COM
script is runni
so i have something like this...
$xlsFile = $_FILES['fileupload']['tmp_name']; //the file we're reading is
the one we just uploaded
$conn= new COM("ADODB.Connection") or die( "did not connect" );
$conn->Open("Driver={Microsoft Excel Driver
(*.xls)};DBQ=$xlsFile;ExtendedProperties=Excel 8.0;");
I am trying to setup an small ecommerece site. I would like to use php
to accomplish this. I have been able to get the .asp example to work
fine but am having trouble getting the asp converted to php. Am i
heading in the right direction? Any ideas?
Here is a trimmed version of the PHP that I
I have been able to access COM objects from PHP under W2000 without too much
problems. Recently I set up a new W2000 server and the COM extension of PHP
is not working. The first 6-10 calls I do to COM (to read Excel cells) work
fine, but them subsequent ones provoke Apache crashing. Can someone he
Hello,
I am trying to convert an ASP script to PHP. The script is using COM objects
and passes them 3 parameters: Request, Response & Session.
When the same script is written in PHP what should I pass to the COM object?
Request is $_REQUEST?
Session is $_SESSION?
What about Response?
Thank you,
R
Hi, I am writing a php application to use a com object that is defined in my
OS, but I have difficulties getting a (smart)pointer from another
com-object.
Here is the code (untill the error):
**
$ConnectionObj = new COM("Falcon.Connec
Hi, I am writing a php application to use a com object that is defined in my
OS, but I have difficulties getting a (smart)pointer from another
com-object.
Here is the code (untill the error):
**
$ConnectionObj = new COM("Falcon.Connec
foreach ($myStories as $Story) {
$myParagraphs = $Story->Paragraphs;
}
Cheers...
Luis Ferro
Frode Mangseth wrote:
I'm working on a script to control Adobe InDesign 2.0 through COM.
And I'm using som Visual Basic examples to teach myself.
What I'm stuck on is this VB-code:
For Each Story I
I'm working on a script to control Adobe InDesign 2.0 through COM.
And I'm using som Visual Basic examples to teach myself.
What I'm stuck on is this VB-code:
For Each Story In myStories
Set myParagraphs = Story.Paragraphs
Next Story
How can I write this in PHP?
BTW: I'd really appreciat
Hello all,
I am having a little problem with return types from a COM object. Basically
(code follows) I get a collection back from the object and I can not figure
out a way to iterate through this collection. Posted is a snippet of test
code that I hope one of you can help me with.
DomainDNSNam
magnum ingenium sine mixtura dementiae fuit
>
>
> > -Original Message-
> > From: Asendorf, John [mailto:JAsendorf@;lcounty.com]
> > Sent: Thursday, October 24, 2002 9:47 AM
> > To: Php-Windows (E-mail)
> > Subject: [PHP-WIN] COM gurus... please help
MAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> > -Original Message-
> > From: Asendorf, John [mailto:J
t: Thursday, October 24, 2002 9:47 AM
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] COM gurus... please help
>
>
> Hello all,
>
> PHP 4.2.3, NT4, IIS4
>
> I finally have a practical application to use COM and I'm
> trying to port
> some ASP scripting. I
Hi there,
I thought I'd just drop a note with some advice that might be of use to you all. I am running some command line scripts which activate Cognos Impromptu via the COM interface.
We are activating these scripts via scheduled tasks on a Windows 2000 server. We found that the COM interf
um sine mixtura dementiae fuit
> -Original Message-
> From: Scott Carr [mailto:scarr@;progbits.com]
> Sent: Thursday, October 24, 2002 10:08 AM
> To: Asendorf,John
> Cc: PHP Windows
> Subject: Re: [PHP-WIN] COM gurus... please help
>
>
> What are you trying
What are you trying to use? MapServer, what is that. If you are trying to do
web mappin, I suggest you look at the MapServer project from University Of M...
at http://mapserver.gis.umn.edu/. It is a very good mapping system that uses
ESRI Shp files as well as several others.
It also has a dir
Hello all,
PHP 4.2.3, NT4, IIS4
I finally have a practical application to use COM and I'm trying to port
some ASP scripting. I'm getting an error (Warning: Invoke() failed:
Exception occurred. Source: Unavailable Description: Unavailable in
D:\spoof\gis\file.php on line 66 and then the timeout e
Hello Michelle,
Wednesday, September 4, 2002, 4:35:17 AM, you wrote:
M> Just out of curiosity, did you run "dcomcnfg" and configure Microsoft Word
M> security properties?
Didn't run it ..
Just ran it and got the following ...
The CLSID {b58c2440-a1a3-11d1-B024-006097c9a284}, item c:\program
f
No problem...
Just out of curiosity, did you run "dcomcnfg" and configure Microsoft Word
security properties?
And what version of Office do you use (including service packs)?
Just trying to eliminate all that can be wrong on my setup...
Thanks,
// Michelle
> Sorry .. I don't see my reply from
Hello Michelle,
Sorry .. I don't see my reply from earlier today ..
Yes .. those are my specific settings.
Tuesday, September 3, 2002, 5:33:13 AM, you wrote:
>> this worked on my test system ..
>>
>> win2k sp2,
>> apache 1.2.34
>> php 4.2.2
M> When you print out phpinfo(), does the COM settin
> this worked on my test system ..
>
> win2k sp2,
> apache 1.2.34
> php 4.2.2
When you print out phpinfo(), does the COM setting look like this?
COM:
Directive, Local Value, Master Value
com.allow_dcom, Off, Off
com.autoregister_casesensitive, On, On
com.autoregister_typelib, Off, Off
com.autoreg
Hello Michelle,
this worked on my test system ..
win2k sp2,
apache 1.2.34
php 4.2.2
dsig
Monday, September 2, 2002, 10:03:50 AM, you wrote:
M> I am new to COM and tried an example today (See bottom of post)
M> When I execute the code, I get is an error message and if I look in the Task
M> Ma
I am new to COM and tried an example today (See bottom of post)
When I execute the code, I get is an error message and if I look in the Task
Manager, there is a WINWORD.EXE process running, which I can't end. Every
time I reload the page, a new winword is started...
How should PHP.ini be set for
I have a number of COM scripts that ran perfectly.. until I got XP, and now
they are acting very odd. I know based on reading some of the archive that I
am not alone here. What I was not able to determine is this:
- Has anyone figured out why it is that you cannot get excel, word, whatever
to go
Hi again
I'm trying a bit of COM programming in PHP but can't for the life of me
figure out what's wrong. I've tried both Winamp (have winampCOM installed)
and MS Word and it just seems to stall the server whenever I view a page
with it. Can anyone explain why or is there a setting in php.ini I
Fixed... Found that the COM object had a form it used for some proecessing and
it did not Unload the form before exiting.
--
Scott Carr
OpenOffice.org
Whiteboard-Doc Maintainer
http://whiteboard.openoffice.org/doc/
Quoting Scott Carr <[EMAIL PROTECTED]>:
> I have a VB ActiveX DLL that I am tr
I have a VB ActiveX DLL that I am trying to call from PHP. Everything works
fine in the DLL except when I set the variable to null. The script just sits
there forever until I kill it.
The final code is:
$buildgen->Release();
$buildgen = NULL;
The release works fine. It is just the NULL that
I'm trying to work on a search engine for my Intranet at work. It needs to
be able to scan Microsoft Word & Excel documents so I'm planning on using
the COM support in PHP + the Microsoft Word & Excel viewer program.
At the moment I'm using Microsoft Word 2000 SR 2 to develop it however I've
hit
> Sent: Tuesday, May 21, 2002 2:53 PM
> To: Scott Hurring
> Subject: Re: [PHP-WIN] COM Problem
>
>
> Scott,
>
> Thanks for the quick reply.
>
> I checked for the zombie processes and as you suspected there were
> several...I restarted my computer.
>
&g
s and return status of calls.
and upgrade to the newest version PHP (if not already running it).
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-----
> From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]
> Sen
I built a script that converts a Microsoft Word file to text and removes
common characters. The text will then be stored in a database for searching.
The script below has been behaving a bit odd. It worked this morning
but now all I get back is a blank screen and the text file it writes is
bla
I'm going to be reading only some data from an excel file. Is there any
benefit to COM or ODBC? I tried the COM route but my scripts always
timed out. Any opinions one way or the other?
Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]
There were definitely two nasty bugs in the COM code which I believe that I
have fixed and checked into CVS. But the root cause of your problem is
actually a COM exception thrown by ADODB.Connection. I see this exception
when I pass "position" (a valid field name in the database) in a SQL queries
On Tue, 16 Apr 2002 09:26:35 -0500, you wrote:
>It may be the ADO connection with Access. I am not sure. DB_adodb is a DB
>class I am writing for the Pear_DB abstraction layer.
>
>I am attaching it to this email so everyone can look at it. At this point it is
>kind of a hack. There is no capa
I can only assume this is something you are writing) and
> I
> > will trace into the source and find out what is happening and fix it if
> > there is a bug or tell you what is wrong with your source otherwise.
> >
> > Alan.
> > - Original Message -
&
ssage -
> From: "Scott Carr" <[EMAIL PROTECTED]>
> To: "PHP Windows" <[EMAIL PROTECTED]>
> Sent: Monday, April 15, 2002 17:43
> Subject: [PHP-WIN] COM and ADODB access
>
>
> > I am having a problem with SQL statements passed to a COM object.
>
I am having a problem with SQL statements passed to a COM object.
"SELECT * FROM Reports" works fine.
"SELECT IDCode, Report_Name, Report_Description, Report_Status FROM Reports"
blows up. I have been having this issue with 4.0.6 through 4.2.0 RC3.
Has anybody else tried to pass semi-long st
I'm trying to write a PHP4 application that will connect to my Windows COM
object. It deals with recordsets a lot. What I would like to know is, what
do I need to do to interface with the methods (the recordsets are causing me
problems right now) and how can I import the enums from the typelib?
H
Can anyone suggest a good tutorial, or website, where I can find information
about creating COM objects through PHP? I want to, for example, give users
the ability to save result sets to their local computers in excel, or even
access - if that's even possible. I've found a couple places with some
hello,
I'm trying to draw some graphs using COM objects, but it seems I can't
set any property..
here's my script snip:
$ex = new COM("Excel.sheet") or Die ("No COM");
print("Application name: {$ex->Application->value}");
print("Loaded version: {$ex->Application->version}");
$wkb =
I am using php dated June 2001 - the latest version 4.1.1 would not run the
php test program on IIS. With this version, I have a php file that will run
on IIS. This php file calls COM objects. However, when I switch from IIS
to IBM HTTP Server ( Apache based web server ). The same file will no
PHP is great at looking up requested methods and attributes for a COM
object, if you have documentation and know the name used. Is there any way
to use php to produce a list of methods and attributes for an invoked object
(say IMAP.session)?
Warren Vail
Tools, Metrics & Quality Processes
215 Fr
EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 5:52 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] COM on NT
I am trying to invoke COM on NT using the following line of code
$outl = new COM("Outlook.Application") or die("Unable to instantiate
Outlook");
and I get a D
I am trying to invoke COM on NT using the following line of code
$outl = new COM("Outlook.Application") or die("Unable to instantiate
Outlook");
and I get a DR.Watson alert for php.exe shows an "access violation". This
is my first attempt to exercise COM on this site, so it could be something
'
> Subject: [PHP-WIN] Com
>
>
> is anyone out there familiar with COM built into Php?
> This is my code:
>
> $sheet = Range("B6:B9")->Select;
> $sheet->Selection->Borders(xlEdgeBottom);
> $sheet->Selection->LineStyle = 9; //xlContinuous
>
is anyone out there familiar with COM built into Php?
This is my code:
$sheet = Range("B6:B9")->Select;
$sheet->Selection->Borders(xlEdgeBottom);
$sheet->Selection->LineStyle = 9; //xlContinuous
$sheet->Selection->Weight = 2; //xlThin
I get an error everytime I use the Range method and some othe
$myRange = $word->ActiveDocument->Content;
$myRange->Font->bold=true;
A+
Alain
-Original Message-
From: stéphane BOUCHONNET [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 5:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] COM adn PHP4
Hello,
I'm a french
I configured php 4.0.6 as an ISAPI module, and it works perfectly now. I
guess this has something to do with ACL's in IIS...
-Jørg
"JøRg V. Bryne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hmm. It seems it's working, it just give out false replies all th
Hmm. It seems it's working, it just give out false replies all the time.
(IE. Axapta which is a databasesystem won't find any data). I would guess
this has to do with IIS config or something. We run PHP as CGI. Does anyone
now if this affects security/user policies in w2k iis? Will try reconfig to
> I'm having some trouble getting around with COM objects. Is there any way
> that one can list the methods/properties of an instanciated COM object?
Read the doc if available.
>
> Also. I'm having trouble getting an ASP-script to work, so maybe someone
> could help me translate? I've been starin
I'm having some trouble getting around with COM objects. Is there any way
that one can list the methods/properties of an instanciated COM object?
Also. I'm having trouble getting an ASP-script to work, so maybe someone
could help me translate? I've been staring at it for so long that I don't
see
: [PHP-WIN] COM /DCOM
Hi All
Where is some good info on useing COM or DCOM with PHP?
Both of my scripts bellow fail and I cannot seem to find why.
or
Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word-
Hi All
Where is some good info on useing COM or DCOM with PHP?
Both of my scripts bellow fail and I cannot seem to find why.
or
Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
$word->Quit
Hey,
When i try to use COM, my machine just doesn't do anything, for example, you
click a link to a php page that has the COM line in it, the browser stays
still for a while, then just times out. Does anyone know what could be
causin this? Please let me know asap please :) email is preffered.
[E
Well if I have a func like this ( im trying to get it to work with the
simplist case now )
HRESULT test( [ out, ref ] unsigned char *n );
I can call that from PERL like
use Win32::OLE;
use Win32::OLE::Variant;
$obj = Win32::OLE->new( "comobjectname" );
$n = Variant( VT_UI1 | VT_BYREF, 0 );
$ob
gt; > 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: [PH
lt;[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
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
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
--
PH
Im playing around with custom COM objects ( my one currently has one method,
which returns a 'long' ), I have tested the object from a 'C++' client and
am still fighting to get the interface pointer out? ... its written in ATL
and I cant see why its not responding correctly when I call QueryInter
ize wrote:
> After changing the permissions using dcomcnfg.exe, it is working. I never
> knew that existed.. Thanks Alan! Also thanks to everyone else who had
> suggestions.
>
> rob.
>
> -Original Message-
> From: Alan Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesd
Subject: Re: [PHP-WIN] COM objects win2000 PHP4.02
Probably the user account that the web site is running under (looks like
IIS, so IUSR_) does not have permission to instantaite the word
component. What are the permissions on the directory containing winword.exe
and on the exectuable itself? It could
Did you check:
http://www.php.net/manual/de/install.iis.php#install.iis.iis4
You seem to have a permission problem.
Don't forget that PHP code works on the server side, so you need to
have word enabled for your server.
Also check the win2k process list because for every time the script crashes
you
I am having issues instantiating word or excel using COM.
I get the error:
Warning: Unable to obtain IDispatch interface for CLSID
{000209FF---C000-0046}: Access is denied. in
C:\Inetpub\wwwroot\website\excel\word.php on line 3
Unable to instanciate Word
Line 3 is:
$word = new COM
OK!!!
Got FUCKED OFF with IIS5.
Installed Apache and all my troubles have gone away.
Next I'll replace term serv client with SSH :)
Cheers
Leon
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
>Please help because the server then goes into a nasty state after
restarting
>the service of giving access violation errors to browsers and all sorts of
>other nasties!
One might also consider this as a nice feature,
helping to decrease the work load at the server. :)
--
PHP Windows Mailing Li
Hi all
My latest problem is an interesting one. I think it is more an IIS issue than
PHP.
At random and with no common thread the server gets its panties in a knot and
gives me a few errors. In the App log - Com+ detected a problem with its
internal state. In the log - IIS Admin has reset, Web S
Hi,
I try to connect to a COM object.
The creation of the objects works fine. The return value isn't NULL.
If I call one of the public functions I get always an error message
"Warning: Invoke() failed:"
The code is like
$obj = COM("TestCom.TestCtrl.1");
if ( $obj == NULL )
print ..
e
Has anyone tried using COM with MSN Messenger.
I want to retreive the contacts list and add a contact.
Jon
I want to use a COM object : 'SGMConnection'
No problem if I want to send simple requests like these :
$oConnection = com_load ("SGMConnection.Connection");
echo "Version = ".com_propget( $oConnection, "version" );
$sConnect = "driver={SQL
Server};server=MTBFAB4;database=Suivi;Truste
Does anyone know the reason for the type mismatch error which often seems to
happen when using COM objects?
The only piece of info I've seen suggested that a COM object can't be passed
as a variable to a second COM object. Is this true, and if it is how might
this be worked around.
Thanks for an
1 - 100 of 116 matches
Mail list logo