Connecting Tech Pros Worldwide Help | Site Map

VB6-to-Power Point

  #1  
Old April 27th, 2007, 03:35 PM
D&JG
Guest
 
Posts: n/a
Hi all
I want to click a button to run a Power Point show (.pps) and don't mind if
the VB6 program exits when this is done. Is there a simple way to do this?
I've searched many VB websites but haven't seen this one yet.


  #2  
Old April 28th, 2007, 12:35 PM
Raoul Watson
Guest
 
Posts: n/a

re: VB6-to-Power Point



"D&JG" <donandjane@optusnet.com.auwrote in message
news:46320841$0$13365$afc38c87@news.optusnet.com.a u...
Quote:
Hi all
I want to click a button to run a Power Point show (.pps) and don't mind
if the VB6 program exits when this is done. Is there a simple way to do
this? I've searched many VB websites but haven't seen this one yet.
>
Shell theApp, vbNormalFocus


  #3  
Old April 30th, 2007, 09:35 AM
Dean Earley
Guest
 
Posts: n/a

re: VB6-to-Power Point


D&JG wrote:
Quote:
Hi all
I want to click a button to run a Power Point show (.pps) and don't mind if
the VB6 program exits when this is done. Is there a simple way to do this?
I've searched many VB websites but haven't seen this one yet.
Use ShellExecute.
http://hashvb.earlsoft.co.uk/ShellExecute

..ppt files have a specific "show" verb, but .pps files default to show
with the "open" verb.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
  #4  
Old April 30th, 2007, 12:15 PM
D&JG
Guest
 
Posts: n/a

re: VB6-to-Power Point



"Dean Earley" <dean.earley@icode.co.ukwrote in message
news:4635a8a6$0$10735$db0fefd9@news.zen.co.uk...
Quote:
D&JG wrote:
Quote:
>Hi all
>I want to click a button to run a Power Point show (.pps) and don't mind
>if the VB6 program exits when this is done. Is there a simple way to do
>this? I've searched many VB websites but haven't seen this one yet.
>
Use ShellExecute.
http://hashvb.earlsoft.co.uk/ShellExecute
>
.ppt files have a specific "show" verb, but .pps files default to show
with the "open" verb.
>
--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team
>
iCode Systems
Tried

Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal
hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long '(one long string)

ShellExecute 0, "open", "http://www.earlsoft.co.uk/", "", "", 1

Click run..
Program stops at the 0 after ShellExecute with the error "Invalid outside
procedure".

What am I missing?

Don


  #5  
Old April 30th, 2007, 12:35 PM
Dean Earley
Guest
 
Posts: n/a

re: VB6-to-Power Point


D&JG wrote:
Quote:
"Dean Earley" <dean.earley@icode.co.ukwrote in message
news:4635a8a6$0$10735$db0fefd9@news.zen.co.uk...
Quote:
>D&JG wrote:
Quote:
>>Hi all
>>I want to click a button to run a Power Point show (.pps) and don't mind
>>if the VB6 program exits when this is done. Is there a simple way to do
>>this? I've searched many VB websites but haven't seen this one yet.
>Use ShellExecute.
>http://hashvb.earlsoft.co.uk/ShellExecute
>>
>.ppt files have a specific "show" verb, but .pps files default to show
>with the "open" verb.
>
Tried
>
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal
hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long '(one long string)
>
ShellExecute 0, "open", "http://www.earlsoft.co.uk/", "", "", 1
>
Click run..
Program stops at the 0 after ShellExecute with the error "Invalid outside
procedure".
You haven't actually put the code in any event.

If you want the exe to do nothing bar run this show, use Sub Main() in
module.

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format the text of a richtextbox with vb6 bero81 answers 3 December 6th, 2006 07:33 AM
What's the point of fields? John Dann answers 4 November 20th, 2005 12:19 PM
getting rid of old vb6 code chookeater answers 43 November 20th, 2005 10:18 AM
POINT(x,y) command ! please help.. Serdar C answers 3 November 20th, 2005 12:31 AM
vb6 UTC time? jhLewis answers 3 August 19th, 2005 06:55 PM