I am trying to put together google search string url within my app, and then to issue ShellExecute on it. This should open default browser and show google search results.
In other words, I want to write procedure which will receive search keywords and return google search string (I suppose it has to be something like wsprintf with variable amount of parameters).

Now I am not sure how to do this, since I dont know exactly know the format of google string (tried googling but havent found it). I know it starts something like www.google.com/search? but dont know the rest. Anyone has it? Or maybe already done and ready-to-use proc? :D
Posted on 2005-02-19 20:44:49 by Mikky
If you are searching for "hello world" it would look like http://www.google.com/search?q=hello+world
Posted on 2005-02-19 20:58:58 by roticv
haha, somehow funny, redirecting people to a search engine when they ask a question on a forum isn't very friendly usually, but in this case you really had to do it to get your answer:

you go to google
you search for your_string

and in your address bar your answer appears:


if you want to search in english.
Posted on 2005-02-20 13:06:20 by lifewire
Yea I know all that but there are some additional search strings in google url, for example if you type my_string in google url will be formated like this:

so there are two other parameters, "&lr" and "&btnG=Search" which I dont know what do they do.
That's why I asked for some documented way but haven't found one yet :(
Posted on 2005-02-20 19:33:42 by Mikky
there is always the google api. you'll find it on their site.
Posted on 2005-02-20 20:33:40 by abc123
Thanks, that's what I needed
Posted on 2005-02-21 06:22:51 by Mikky