Google 利嫋貧戻工阻goole search client api for Java才for dot.net議井云,寄社辛參歌深.
For C/C++議井云蒙泣泌和
坪崔XML盾裂匂.
坪崔gbk/utf-8園鷹/盾鷹匂(淫根GBK園鷹燕)
寡喘Pure C園亟,寡喘炎彈C俊笥.
屶隔http旗尖.
喘薩俶勣壓http://api.google.com/createkey賦萩key
處幣殻會嶄議key頁匯倖利嗔公厘議,叙工霞編喘?處幣殻會嶄議旗尖辛嬬銭俊音貧,喇噐短嗤譜崔階扮,辛嬬侃噐吉棋彜蓑(sorry.....)
痕方嶄光倖歌方議吭吶才http://www.google.com/apis/reference.html議傍苧匯劔,斤緩音恬狛謹議初府.
秀咏壓緩児粥貧蝕窟屈肝哘喘,泌撃廾撹COM,徽音誼斤恬宀戻工議api序佩郡園咎.
泌俶廬墮,萩廣苧圻恬宀,仍仍栽恬.散哭住送.
痕方俊笥
/************************************************************************/ /*google search client api for c/c++*/ /*By littlestar,2003,TRS Open Lab*/ /************************************************************************/ //go http://www.google.com/apis/reference.html for more information /*start primitive data types*/ #ifdef _SOAP_TYPES typedef char * xsd__string; typedef int xsd__int; struct xsd__base64Binary { unsigned char *__ptr; int __size; }; typedef bool xsd__boolean; typedef double xsd__double; /*end primitive data types*/ struct DirectoryCategoryArray { struct typens__DirectoryCategory * __ptr; int __size; int __offset; }; struct typens__ResultElement { xsd__string summary; xsd__string URL; xsd__string snippet; xsd__string title; xsd__string cachedSize; xsd__boolean relatedInformationPresent; xsd__string hostName; struct typens__DirectoryCategory * directoryCategory; xsd__string directoryTitle; }; struct typens__doGoogleSearchResponse { struct typens__GoogleSearchResult * _return_; }; struct typens__DirectoryCategory { xsd__string fullViewableName; xsd__string specialEncoding; }; struct typens__GoogleSearchResult { xsd__boolean documentFiltering; xsd__string searchComments; xsd__int estimatedTotalResultsCount; xsd__boolean estimateIsExact; struct ResultElementArray * resultElements; xsd__string searchQuery; xsd__int startIndex; xsd__int endIndex; xsd__string searchTips; struct DirectoryCategoryArray * directoryCategories; xsd__double searchTime; }; struct ResultElementArray { struct typens__ResultElement * __ptr; int __size; int __offset; }; struct typens__doSpellingSuggestionResponse { xsd__string _return_; }; struct typens__doGetCachedPageResponse { struct xsd__base64Binary * _return_; }; #endif //秀羨Soap銭俊 extern "C" int _stdcall CreateSoapSession(void **SoapSessionHandle,char *strServerAdd,char *key); //譜崔旗尖捲暦匂,屶隔http旗尖. extern "C" int _stdcall SetSoapProxy(void *SoapSessionHandle,char *strProxyHost,int ProxyPort); //匈中殊沫 extern "C" int _stdcall doGoogleSearch(void *SoapSessionHandle, xsd__string q, xsd__int start, xsd__int maxResults, xsd__boolean filter, xsd__string restrict_, xsd__boolean safeSearch, xsd__string lr, xsd__string ie, xsd__string oe, struct typens__doGoogleSearchResponse * out); //函誼
|