Solved

Get exit code from VB exe?

Posted on 2002-06-06
4
326 Views
Last Modified: 2008-02-26
How can I return an exit code from a vb 6 exe? One that could be trapped from another program or .bat errorlevel?
0
Comment
Question by:gferrell
  • 2
4 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 200 total points
Comment Utility
0
 

Author Comment

by:gferrell
Comment Utility
In your experience, does this cause a problem since this command is unsupported in vb?
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
I have used it without problems in batch applications that are still running every night.

ExitProcess is an API call given by Windows. It doesn't have to be supported to be working!
0
 
LVL 5

Expert Comment

by:rpai
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now