Library SimpleWebClient

[ Keywords | Classes | Data | Functions ]

Quick Index


Classes

CSimpleHTTPClient
Implements a simple HTTP (Web) client in an COMponent.

Back to the top of SimpleWebClient

Data

Back to the top of SimpleWebClient

Global Functions

LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);

Back to the top of SimpleWebClient

LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);

#include "WindowsErrorText.h"

Purpose: return the text for a given Windows Error Code

Parameters:

in dwErrorCode
WIN32 error code (e.g. returned by "GetLastError")
in lpszBuf
buffer where the error text will be written
in dwSize
size of the buffer (maximum size for the error text)

Return value : LPTSTR = error text (points to lpszBuf)

Description : This function is a wrapper for many error-handling functions from WIN32. It searches for error text in the following locations:

bulletIn the Operating System, using function FormatMessage (...FORMAT_MESSAGE_FROM_SYSTEM...)
bulletIn specific modules, using function FormatMessage (...FORMAT_MESSAGE_FROM_HMODULE...):
bulletwininet.dll (Win32 Internet Errors)
bulletmqutil.dll (Microsoft Message Queue Errors)
bulletIn Extended Internet Errors, using function InternetGetLastResponseInfo()

If no error text is found, this function still builds an error message with the format "Error Code 0x%X (%d)" (the error code is shown is hexadecimal and in decimal).

LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);

Back to the top of SimpleWebClient

Generated from source by the Cocoon utilities on Mon Feb 14 10:04:23 2000 .

Report problems to jkotula@stratasys.com