Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello guys, I am trying to build console application that have 2 clients. ench clients has its own command prompt?
Is there any tips where and how should fix this. I va looking in net for the whole day.
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-15 13:41pm    
It really makes no sense. There are no clients. There are users. If a user starts application, it starts just one process. Another user will start another one. If this is some kind of network or non-interactive application, there are clients, but then the notion of "prompt" simply looses its sense.
—SA

1 solution

Please see my comment to the question.

In addition to that, note that decent professional console-only application are roughly classified into two classes. In first class, there are very few applications which act like fully-fledged command interpreters. CMD.EXE is one of them. The majority of such application is in the second class. They never use interactive input, by a number of very good reasons: it is very inconvenient, easy to loose a lot of typing work, and so on. Therefore, the application expect all the input only in command line. If some pieces of data are to big to be put in a command-line parameter, some parameters can be file names, so a big chunk of data people can supply in a text or other file, using editors of their choice, which is way more convenient than typing in the console.

For help on parsing command line, please see my article: Enumeration-based Command Line Utility[^].

I also reference and recommend one more command-line library in my article.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900