#include
#include
#include
#include
const char *user="user anonymous";
const char *super="pass -anonymous@";
void main()
{
clrscr();
cout<<"***Press a key to connect to the system***";<br>
getch();
system("telnet www.omnics.co.jp 21");
sleep(7);
system(user);
system(super);
}
Can someone help me correct this code!!!
I have Turbo C++ 3.0 for DOS.
(Excuse my english)
Greetings: David
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If you use the operation
system("telnet www.omnics.co.jp 21");
your program still waits until the telnet program
has been finished.
1. Try to get a C/C++ compiler for windows.
2. Create a thread where you open your telnet operation.
3. Add to the thread the Keyboard commands to
login into your telnet session.
This is the way i would try to solve it.
I don't know if it works, but i hope
it would be helpfull.
greetings
SCIP
Where could i get a good book or manual.
I would really like to learn programming in
Windows...
Best wishes: David