Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2004, 10:25 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do i open an external application from VB6?

Hi. I'm new to VB6 and really needs help here. I'm currently workin on a simulation software "ProModel". Basically i need to open the software from VB6, and i'm unsure which command/statement to use since "ProModel" is not a typical sequential/random/binary file. Finally after running the software, the results which are in (*.idb) format are hope to be exported automatically to Excel(*.xls) spreadsheets, and i'm unsure how to go about this as well. I hope i had gave a clear picture of my difficulty. Hope to hear from anyone soon. Thanks ya.

 
Old December 10th, 2004, 05:31 AM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,

I dont know ur application format,but if it an .exe file then u can open application using "shell" function in the vb6,

For example if u want to open a notepad from ur vb application,

shell("c:\windows\notepad.exe")

this will opens the notepad ...

I hope this will helps you.


Regards,

Satish Kumar J
 
Old December 10th, 2004, 12:58 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi. Thanks for the prompt reply. The format of the software that i need to open using VB6 is (*.mod). Btw, i'd tried the shell method but it didn't work for this format. Any other method/statements?


 
Old December 20th, 2004, 11:04 AM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use ShellExecute function from API's. That will open all files with the parent software.
Note : You must have the parent software that produces files with (*.mod), other wise it will failed too. . .
Bye . . .






Similar Threads
Thread Thread Starter Forum Replies Last Post
please help, how to load external application hard boiled Beginning VB 6 3 June 11th, 2007 03:47 PM
Open external DB in MS Access VB problem Derek_05 Access VBA 1 January 21st, 2006 03:51 AM
calling an external application forlorn Classic ASP Professional 0 August 19th, 2005 03:26 AM
calling an external application forlorn Classic ASP Basics 0 August 19th, 2005 03:22 AM
Launch external application kikashi VB How-To 0 May 14th, 2005 01:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.