long MyGetFileSize( const char* pFile )
{
struct _stat buf;
int result;
result = _stat( pFile, &buf );
if( result != 0 )
{
return -1;
} else {
return buf.st_size;
}
}