Solved

Opening an application through VB

Posted on 2003-10-28
2
167 Views
Last Modified: 2010-05-01
Hello,

I use a third party application...I believe that application was written in C. That application folder has, one exe and 13 dll files. Say, this application is present in C:\pace\app.exe along with the dll files.

When I double click this exe from Windows, the application opens and I am getting the first menu screen. Then, I naviagated to C:\pace in command prompt and typed app.exe. Again, the application opens and I am getting the first menu screen.

Now, I want to open the application through VB...To test this, I just put a command on a form and put the Shell statement code in Command1_click.

It opens a window for the application, but is a blank white window...I know the window is that of application, but why is it blank...why I am not getting the menu screen I was getting by just double clicking it or from the command prompt..I tried different methods of shelling using command.com, comspec etc..everything gives the same result..just opens a blank window!
I am sure my shell code is correct, but I believe it may have something to do with dlls or paths etc...

Could any one please help me out here..Please bear with me as I am short of points..

Thanks
0
Comment
Question by:vblycos
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 9638881
use ChDir to change the current directory to c:\pace before shelling.
0
 
LVL 4

Author Comment

by:vblycos
ID: 9639044
Thanks emoreau, that did the trick!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
Reading the Contents of a Directory In Access VBA 5 68
VB6 - Compare and highlight cell not the same 3 50
vbModal 12 51
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question