Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

A question about Win32:OLE
A question about Win32:OLE!

Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?

my $app =3D Win32::OLE->new('Word.Application', 'Quit');
!

Report this thread to moderator Post Follow-up to this message
Old Post
J aperlh
05-30-05 08:56 AM


RE: A question about Win32:OLE
You can use regedit too. The OLE/COM Object Viewer is the favorite.

Well, actually, the documentation/tutorial for the function you are trying
to call is the favorite.

If you know the CLSID, you can call a function like CLSIDtoString (or
something like that) to get the progid.

Siegfried


-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Sunday, May 29, 2005 8:10 PM
To: beginners@perl.org
Subject: A question about Win32:OLE

A question about Win32:OLE!

Where can I get the program ID of an application?
Get it from OLE/COM Object Viewer or something else?

my $app = Win32::OLE->new('Word.Application', 'Quit');
!

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>



Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Heintze
06-01-05 01:56 AM


Re: A question about Win32:OLE
Thanks for your help!

I have a application installed on my system.
I can start the application by using:
=09my $app =3D Win32::OLE->GetActiveObject('Aaa.Bbb');

The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
OLE-Browser.
I did a thorough search!

Another question is:
How do I shut the application down?



On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> You can use regedit too. The OLE/COM Object Viewer is the favorite.
>=20
> Well, actually, the documentation/tutorial for the function you are tryin=
g
> to call is the favorite.
>=20
> If you know the CLSID, you can call a function like CLSIDtoString (or
> something like that) to get the progid.
>=20
> Siegfried
>=20
>=20
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Sunday, May 29, 2005 8:10 PM
> To: beginners@perl.org
> Subject: A question about Win32:OLE
>=20
> A question about Win32:OLE!
>=20
> Where can I get the program ID of an application?
> Get it from OLE/COM Object Viewer or something else?
>=20
> my $app =3D Win32::OLE->new('Word.Application', 'Quit');
> !
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>

Report this thread to moderator Post Follow-up to this message
Old Post
J aperlh
06-01-05 08:55 AM


RE: A question about Win32:OLE
Well I'm surprised that you cannot find with the OLE/COM viewer. Did you try
regedit like I recommended? You can search with regedit more easily than you
can OLE/COM viewer anyway.

But I don't' understand your problem: if your application is working, why do
you care if you can find it in OLE/COM viewer?

Re. shutdown: Check the documentation for Win32::OLE -- I remember there is
a way to shut down an application.

Now beware the some applications, like Microsoft Word, don't follow the
rules. You can observer this by creating an instance of Microsoft word and
$app->Visible = $true;

When you release the application, the application (and its window, of
course) is supposed to shut down but it does not. So maybe your application
misbehaves in the same manor. There may be a function you can call like
quit, or exit that will make the application shut down.

Siegfried
-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Tuesday, May 31, 2005 6:48 PM
To: Siegfried Heintze
Cc: beginners@perl.org
Subject: Re: A question about Win32:OLE

Thanks for your help!

I have a application installed on my system.
I can start the application by using:
my $app = Win32::OLE->GetActiveObject('Aaa.Bbb');

The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
OLE-Browser.
I did a thorough search!

Another question is:
How do I shut the application down?



On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> You can use regedit too. The OLE/COM Object Viewer is the favorite.
>
> Well, actually, the documentation/tutorial for the function you are trying
> to call is the favorite.
>
> If you know the CLSID, you can call a function like CLSIDtoString (or
> something like that) to get the progid.
>
> Siegfried
>
>
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Sunday, May 29, 2005 8:10 PM
> To: beginners@perl.org
> Subject: A question about Win32:OLE
>
> A question about Win32:OLE!
>
> Where can I get the program ID of an application?
> Get it from OLE/COM Object Viewer or something else?
>
> my $app = Win32::OLE->new('Word.Application', 'Quit');
> !
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>


Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Heintze
06-01-05 08:56 PM


Re: A question about Win32:OLE
Thanks for your help.

I can find it in regedit.

I have to find it out in OLE/COM Object Viewer or OLE-Browser
to get the methods and properties of this OLE server.

It's really not good that OLE/COM Object Viewer and OLE-Browser don't
have a search function...




On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> Well I'm surprised that you cannot find with the OLE/COM viewer. Did you =
try
> regedit like I recommended? You can search with regedit more easily than =
you
> can OLE/COM viewer anyway.
>=20
> But I don't' understand your problem: if your application is working, why=
do
> you care if you can find it in OLE/COM viewer?
>=20
> Re. shutdown: Check the documentation for Win32::OLE -- I remember there =
is
> a way to shut down an application.
>=20
> Now beware the some applications, like Microsoft Word, don't follow the
> rules. You can observer this by creating an instance of Microsoft word an=
d
> $app->Visible =3D $true;
>=20
> When you release the application, the application (and its window, of
> course) is supposed to shut down but it does not. So maybe your applicati=
on
> misbehaves in the same manor. There may be a function you can call like
> quit, or exit that will make the application shut down.
>=20
> Siegfried
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Tuesday, May 31, 2005 6:48 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>=20
> Thanks for your help!
>=20
> I have a application installed on my system.
> I can start the application by using:
>        my $app =3D Win32::OLE->GetActiveObject('Aaa.Bbb');
>=20
> The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
> OLE-Browser.
> I did a thorough search!
>=20
> Another question is:
> How do I shut the application down?
>=20
>=20
>=20
> On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote: 
ing 
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>

Report this thread to moderator Post Follow-up to this message
Old Post
J aperlh
06-02-05 08:56 AM


RE: A question about Win32:OLE
If it is in regedit, then it is probably in the OLE/COM viewer too. Have to
clicked expert mode?

There is a search feature in the OLE/COM viewer: if you just start typing
the characters it will scroll down and search. If you wait too long between
keystrokes, it will assume you want to start a new search.
S

-----Original Message-----
From: J aperlh [mailto:japerlh@gmail.com]
Sent: Wednesday, June 01, 2005 9:08 PM
To: Siegfried Heintze
Cc: beginners@perl.org
Subject: Re: A question about Win32:OLE

Thanks for your help.

I can find it in regedit.

I have to find it out in OLE/COM Object Viewer or OLE-Browser
to get the methods and properties of this OLE server.

It's really not good that OLE/COM Object Viewer and OLE-Browser don't
have a search function...




On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> Well I'm surprised that you cannot find with the OLE/COM viewer. Did you
try
> regedit like I recommended? You can search with regedit more easily than
you
> can OLE/COM viewer anyway.
>
> But I don't' understand your problem: if your application is working, why
do
> you care if you can find it in OLE/COM viewer?
>
> Re. shutdown: Check the documentation for Win32::OLE -- I remember there
is
> a way to shut down an application.
>
> Now beware the some applications, like Microsoft Word, don't follow the
> rules. You can observer this by creating an instance of Microsoft word and
> $app->Visible = $true;
>
> When you release the application, the application (and its window, of
> course) is supposed to shut down but it does not. So maybe your
application
> misbehaves in the same manor. There may be a function you can call like
> quit, or exit that will make the application shut down.
>
> Siegfried
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Tuesday, May 31, 2005 6:48 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>
> Thanks for your help!
>
> I have a application installed on my system.
> I can start the application by using:
>        my $app = Win32::OLE->GetActiveObject('Aaa.Bbb');
>
> The problem is that I cannot find Aaa.Bbb in OLE/COM Object Viewer or
> OLE-Browser.
> I did a thorough search!
>
> Another question is:
> How do I shut the application down?
>
>
>
> On 6/1/05, Siegfried Heintze <siegfried@heintze.com> wrote: 
trying 
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>



Report this thread to moderator Post Follow-up to this message
Old Post
Siegfried Heintze
06-03-05 08:56 AM


Re: A question about Win32:OLE
Siegfried,

Thanks for your help.

I got the CLSID of the application,
through CLSID, I got the progid of this application from regedit,

But I still cannot get any thing about the application from OLE/COM
Object Viewer.

At last, I found a good way to view it from OLE/COM Object Viewer,
File/View TypeLib...

and choose the application (.exe file),=20
and then I got what I want: detailed information about the interface,
like methods, paramter list...

Thank you.


On 6/3/05, Siegfried Heintze <siegfried@heintze.com> wrote:
> If it is in regedit, then it is probably in the OLE/COM viewer too. Have =
to
> clicked expert mode?
>=20
> There is a search feature in the OLE/COM viewer: if you just start typing
> the characters it will scroll down and search. If you wait too long betwe=
en
> keystrokes, it will assume you want to start a new search.
> S
>=20
> -----Original Message-----
> From: J aperlh [mailto:japerlh@gmail.com]
> Sent: Wednesday, June 01, 2005 9:08 PM
> To: Siegfried Heintze
> Cc: beginners@perl.org
> Subject: Re: A question about Win32:OLE
>=20
> Thanks for your help.
>=20
> I can find it in regedit.
>=20
> I have to find it out in OLE/COM Object Viewer or OLE-Browser
> to get the methods and properties of this OLE server.
>=20
> It's really not good that OLE/COM Object Viewer and OLE-Browser don't
> have a search function...
>=20
>=20
>=20
>=20
> On 6/2/05, Siegfried Heintze <siegfried@heintze.com> wrote: 
u
> try 
n
> you 
hy
> do 
e
> is 
and 
> application 
> trying 
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>=20
>=20
>=20


--=20

Besh wishes,
Japerlh

Report this thread to moderator Post Follow-up to this message
Old Post
Japerlh
06-10-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:39 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.