Unit MVMisc

Classes

Functions

DelphiIsRunning - FormatLastError( dwGetLastError, nil, 0 );
FormatLastError -
isalpha -
iscntrl - C++ routines

size of buffer
isdigit -
mbstowcs - C++ routines //
strtoul -
szFormatLastError - Renamed from Misc.

Types

Constants

MAXOUTPUTSTRINGLENGTH

Variables


Functions


function DelphiIsRunning : boolean;

FormatLastError( dwGetLastError, nil, 0 );

function FormatLastError( dwLastError: DWORD ): string;


function isalpha( ch: char ):Boolean;


function iscntrl( ch: char ):Boolean;

C++ routines

size of buffer


function isdigit( ch: char ):Boolean;


procedure mbstowcs( szw: POleStr; m_pszPath: PChar; len: Integer{sizeof(szw)});

C++ routines //

function strtoul(pszBuffer: PChar; var ppszBuffer: PChar; Base: Integer): Integer;


function szFormatLastError( dwLastError: DWORD; szOutputBuffer: PChar; dwSizeofOutputBuffer: DWORD ): PChar;

Renamed from Misc.pas 6/14/1998 Paul Rice to avoid conflicts with others' work.

FUNCTION: FormatLastError(DWORD, LPSTR, DWORD) // PURPOSE: Pretty print a system error to a string. // PARAMETERS: dwLastError - Actual error code to decipher. szOutputBuffer - String buffer to pretty print to. dwSizeofOutputBuffer - Size of String buffer. // RETURN VALUE: Returns the buffer printed to. // COMMENTS: If szOutputBuffer isn't big enough to hold the whole string, then the string gets truncated to fit the buffer. // If szOutputBuffer == NULL, then dwSizeofOutputBuffer is ignored, a buffer 'big enough' is LocalAlloc()d and a pointer to it is returned. However, its *very* important that this pointer be LocalFree()d by the calling application. // //


Types


Constants

MAXOUTPUTSTRINGLENGTH = 4096

sizeof(szw

Variables