473,396 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB6-to-Power Point

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.
Apr 27 '07 #1
4 5418

"D&JG" <do********@optusnet.com.auwrote in message
news:46***********************@news.optusnet.com.a 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
Apr 28 '07 #2
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 (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Apr 30 '07 #3

"Dean Earley" <de*********@icode.co.ukwrote in message
news:46***********************@news.zen.co.uk...
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 (de*********@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
Apr 30 '07 #4
D&JG wrote:
"Dean Earley" <de*********@icode.co.ukwrote in message
news:46***********************@news.zen.co.uk...
>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 (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Apr 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeff Johnson | last post by:
Hi, Has anyone had this problem with VB6 under Windows XP ?? A new folder created in Windows Explorer cannot be seen by VB6 when opening a project. However, if a folder is created with the icon...
5
by: 2803stan | last post by:
I asked this last year, but never received a satisfactory answer: <<Has the promise of stored procedures written in VB6 been fulfilled in 8.2? If there be a special syntax, and where do I find...
4
by: Seanna | last post by:
For various reasons, I am looking at installing .NET on a machine that already has VB6 installed. I am not looking at removing VB6. Are there any conflicts/problems with doing the above? ...
2
by: Kelvin | last post by:
Hello, I have VB6 Pro SP5 installed on my computer, and have few VB6 projects still working on. Will I trash the existing VB6 projects by installing VB.Net on the same computer ? Even if...
0
by: Tako | last post by:
I have a problem calling .NET classes with default properties from VB6. The class has a public member, this public member has a default property, from VB6 I can´t acces the default method without...
3
by: William Gower | last post by:
We are gradually converting a huge vb6 app to .net. How can I call a .net winform from a button on a vb6 form?
3
by: kurt sune | last post by:
I am running the native debugger in Visual Studio. I debug an assembly calling DLL:s made in VB6. I can watch the values of variables thus: ?Number 0x06e1960c "300115"
1
by: Franky | last post by:
Tengo un problema con un programa en vb6 sp6 que cuando lo instalo en un ordenador con sistema xp o nt, funciona todo correcto menos los menus y si pulso donde deberia estar el menu y que aparece...
1
by: Zest4Csharp | last post by:
Hello, I am having trouble installing VB6 on Windows XP. I am getting a message saying: "Invalid Command Option: Setting\Temp\vs60wiz.exe" I have a gut feelings there is some truncation of a...
6
by: vul | last post by:
May ADO.NET be used in VB6 ? I'm not asking about using it in DLL created in VB.NET or C# and then DLL is used in VB6. I'm asking about direct using. I need some of ADO.NET features, which are not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.