root/lang/cplusplus/SleipnirGoogleSuggest/ConnectionTest.cpp

Revision 14174, 0.6 kB (checked in by saturday06, 7 months ago)

アカウントもらった記念に今作ってるものを全部うp

Line 
1#include "StdAfx.h"
2#include "Connection.h"
3
4using namespace SleipnirGoogleSuggest;
5
6int main() {
7    //LoadLibrary(TEXT("user32.dll"));
8    //GetModuleFileName(GetModuleHandle(NULL),NULL,MAX_PATH);
9    using namespace Poco;
10    using namespace std;
11
12        Poco::Net::HTTPStreamFactory::registerFactory();
13       
14        try     {
15        URI uri("http://www.google.co.jp");
16        ostream http_stream(Poco::Net::URIStreamOpener::defaultOpener().open(uri));
17        //Poco::StreamCopier::copyStream(*ptrFtpStream.get(), localFile);
18    } catch (Poco::Exception& e) {
19        std::cerr << e.displayText() << std::endl;
20        return 1;
21        }
22
23    return 0;
24}
25
Note: See TracBrowser for help on using the browser.