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.
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.
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.
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
Last edited by Amar; 05-31-2003 at 08:20 AM.
Same problem, but not quite the same question.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law