Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

further about ShellExecute()

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
SG
hi, i got a difficult question to be solved with the ShellExecute() function.

that is,
i use the ShellExecute() funtion to launch the program "Angry IP Scanner", i passed the following command to open the scanner:
"IPSCAN 111.111.111.111 222.222.222.222 filename.csv"

these two ip addresses is the ip range which the scanning based on.
since it will take a long time for the scanner to scan the network, the launching interface(that is my program)became inactive for a long time(1 or 2 mins the dialog shadow stayed in the center of the window), what should i do to give the user some feedback rather than giving them a dialog shadow in the center of the window?

your help is very much appreciated!
thanks in advance!

regards,
kaya
 
You can try executing it from a separate thread.
See CreateThreadEx - Then your GUI will be running in one thread so the user can continue navigating etc, and also your other thread can keep scanning.



Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
try using system("command")...
It will show the console with console output

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top