Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
VB6-to-Power Point
Old
  (#1)
D&JG
Guest
 
Posts: n/a
Default VB6-to-Power Point - 06-04-2007, 10:35 AM

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.


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: VB6-to-Power Point
Old
  (#2)
Raoul Watson
Guest
 
Posts: n/a
Default Re: VB6-to-Power Point - 06-04-2007, 10:35 AM


"D&JG" <EMAIL REMOVED> wrote in message
news:46320841$0$13365$EMAIL REMOVED u...
> 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: VB6-to-Power Point
Old
  (#3)
Dean Earley
Guest
 
Posts: n/a
Default Re: VB6-to-Power Point - 06-04-2007, 10:35 AM

D&JG wrote:
> 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 (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: VB6-to-Power Point
Old
  (#4)
D&JG
Guest
 
Posts: n/a
Default Re: VB6-to-Power Point - 06-04-2007, 10:35 AM


"Dean Earley" <EMAIL REMOVED> wrote in message
news:4635a8a6$0$10735$EMAIL REMOVED...
> D&JG wrote:
>> 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 (EMAIL REMOVED)
> 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: VB6-to-Power Point
Old
  (#5)
Dean Earley
Guest
 
Posts: n/a
Default Re: VB6-to-Power Point - 06-04-2007, 10:35 AM

D&JG wrote:
> "Dean Earley" <EMAIL REMOVED> wrote in message
> news:4635a8a6$0$10735$EMAIL REMOVED...
>> D&JG wrote:
>>> 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 (EMAIL REMOVED)
i-Catcher Development Team

iCode Systems
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us - Forum Care Forums - Archive - Top