Command Line Interface

Thread Solved
Reply

Join Date: Mar 2008
Posts: 2
Reputation: foehner is an unknown quantity at this point 
Solved Threads: 0
foehner foehner is offline Offline
Newbie Poster

Command Line Interface

 
0
  #1
Sep 18th, 2008
I have a VB6 program that does some image processing. It works fine when used thru both the GUI or non-GUI command line. My problem is that if I am in a command window and run the executable with arguments, it returns to the command window prompt after just a few seconds. Even tho, it might take several minutes to complete the image processing. It does eventually process all the images correctly, so the problem is to just know *when* it is done. I expected to be returned to the command line only after the processing was done. This becomes important when using this in scripting.

Why is this doing this? Is it because I am calling functions that are in forms that normally display on the screen? I see a couple of solutions I could impose on this, but am thinking there must be a 'right' way to do it. Any help out there? Thanks!
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 2
Reputation: foehner is an unknown quantity at this point 
Solved Threads: 0
foehner foehner is offline Offline
Newbie Poster

Re: Command Line Interface

 
0
  #2
Sep 20th, 2008
I continued searching on the web and found some good info at --

http://www.nirsoft.net/vb/appmodechange.html

My problem was that VB6 executables are always started in GUI mode by default. The web site provided a solution to make the executable start in CONSOLE mode. Works great now, but I will probably end up having to provide two 'identical' executables to handle the two modes.
Last edited by foehner; Sep 20th, 2008 at 1:02 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC