- From: Vipul Doshi <v_doshi@hotmail.com>
- Date: Thu, 10 Jun 1999 14:21:38 -0400 (EDT)
- To: www-lib@w3.org
My sample program from NT is attached below.
The URL is http://vipul, my local machine running IIS.
The error I get is:
Looking up vipul
WARNING: Fatal Error: System replies (connect: Unix errno=10093 dec, WinSock
err
or=10093)
Reason: Can't locate remote host (vipul)
Please help. If possible send reply to v_doshi@hotmail.com
Thanks
Vipul
--------
// libwwwtest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "libwwwtest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "WWWLib.h"
#include "WWWHTTP.h"
#include "WWWInit.h"
#include "HTInit.c"
#include "HTProfil.c"
#include "HTBInit.c"
/////////////////////////////////////////////////////////////////////////////
// The one and only application object
CWinApp theApp;
using namespace std;
int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
int nRetCode = 0;
// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
cerr << _T("Fatal Error: MFC initialization failed") << endl;
nRetCode = 1;
}
else
{
// TODO: code your application's behavior here.
HTRequest * request;
HTProfile_newPreemptiveClient("TestApp", "1.0");
WWWTRACE = SHOW_CORE_TRACE + SHOW_STREAM_TRACE +
SHOW_PROTOCOL_TRACE;
request = HTRequest_new();
HTLoadToFile("http://vipul", request, "junk");
HTRequest_delete(request); /* Delete the request object
*/
HTProfile_delete();
}
return nRetCode;
}
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
Received on Thursday, 10 June 1999 18:37:38 UTC