Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / June 2005



Tip: Looking for answers? Try searching our database.

Starting a Progress application with ShellExecute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
de Muur - 23 Jun 2005 14:31 GMT
I have a problem starting a Progress application with the ShellExecute function

I have defined the ShellExecute function and this is my sourcecode to
execute it:

retval = ShellExecute(Me.hwnd, "open", strApplication, "", "", 3)

strApplication is a bat file with two statements:
cd g:\application\dlc\
g:\application\dlc\application.exe -basekey ini

The application start with a MS-error: Progress Prowin32 has encountered a
problem and needs to close. We are sorry .....

When I start the bat file from the command-line there is no problem at all
and when I remove the parameters -basekey and ini there is no error but the
program does'nt react at all.

Who has experience with Progress an VB?

Thank you in advance
Leiden, The Netherlands
Karl E. Peterson - 23 Jun 2005 22:44 GMT
> I have a problem starting a Progress application with the
> ShellExecute function
[quoted text clipped - 17 lines]
>
> Who has experience with Progress an VB?

Not I!  But a wild guess might be for you to add another line to the batch file, to
make the G: drive current?

Or, rearrange everything by caching the current drive/directory, changing to the
desired ones using ChDrive and ChDir, then spawning the EXE directly.  That avoids
the need for the batch file altogether, right?
Signature

Working Without a .NET?
http://classicvb.org/petition

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.