how can I write a console application program that sends some English words to a website, lets say to "http://www.cambridge.org" website to check for the meaning of these words, and how can I get the result.
Printable View
how can I write a console application program that sends some English words to a website, lets say to "http://www.cambridge.org" website to check for the meaning of these words, and how can I get the result.
What you're asking is a very wide range of things. First the website would have to be able to accept requests from outside the website and you'd have to know the way it has to be asked.
Even soupousing that you would have to look up sockets to open the internet connection to the website and get the result just like your browser would.
If you're having to ask this you're probably not at a stage where you could do this easily. Take a look at sockets anyway and see.
I highly recommend Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
Kuphryn
Hello, Here is a Sample application from MSDN for u to begin with.
It runs from command prompt. Called TEAR
TEAR http://www.google.com
That gets the html source code of google.com. Then its a matter of locating The data from within the html code, in your case Translated word, and displaying it.
Download it > Tear.Zip <
Build it with VC++. Good Luck
Same problem, but not quite the same question.Quote: