Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: How to 'invoke' a PDF file on Win32

by jsprat (Curate)
on Apr 23, 2002 at 16:59 UTC ( [id://161372]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to 'invoke' a PDF file on Win32
in thread How to 'invoke' a PDF file on Win32

Here's a better solution, using the ShellExecute API. This works as-is:

#!/usr/bin/perl -w use strict; #use diagnostics; use warnings; use Win32::API; my $ShellExecute = new Win32::API("shell32", "ShellExecute", [qw(N P P + P P N)], 'N'); my $hWnd; $ShellExecute->Call($hWnd, 'open', 'c:/rc.d.pdf', undef, undef, 1);

Try perldoc Win32::API, then find a good API reference. A lot of VB oriented sites will have good info.

Replies are listed 'Best First'.
Re: Re: Re: Re: How to 'invoke' a PDF file on Win32
by svad (Pilgrim) on Apr 23, 2002 at 17:08 UTC
    YES!

    Thank you!

    That is exactly what I've searched for... Now I will test it on different Win32 platforms and will use this.

    Warmest wishes,
    Vadim.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://161372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-24 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found