Can any one tell me why I get this error when trying to compile the code
below.
The error is:
***************************************************************************
********************************************************
--------------------Configuration: geo - Win32 Debug--------------------
Compiling...
geo.cpp
f:\apps\msdev98\myprojects\geo\geo.cpp(68) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
Error executing cl.exe.
geo.exe - 1 error(s), 0 warning(s)
***************************************************************************
********************************************************
The cod is:
/**************************************************************************
********************************************************************/
#if defined(_WINDOWS)||defined(_WIN32)
#include <windows.h>
#endif
#ifdef _WINDOWS
#define GEODLL
#endif
#include <geo.h>
#include <geoerror.h>
short InitializeEngine(pGEO_ENG_HANDLE);
short InitializeEngine(pGEO_ENG_HANDLE pGeoEngHandle)
{
char dbPath[256] = "";
char *dbName = "geo_usa";
GEO_ENG_CFG_PARMS geoEngParms;
short retCode;
short dbFlags;
printf("Initializing the Geocoding Engine. This could take a while.\n");
printf("Please enter the full path of the mapmarkir address dictionary\n");
gets (dbPath);
retCode = GeoEngCheckDbAvailability (dbPath, dbName, NULL, &dbFlags);
if (retCode != SUCCESS)
{
fprintf (stderr, "Error %d checking MapMarker dictionary
availability\n", retCode);
return FAILURE;
}
if (!(dbFlags & STREET_DB))
{
fprintf (stderr, "Geocoder Database files not available\n");
fprintf(stderr, "please try again with the correct dbpath\n");
return FAILURE;
}
if (!(dbFlags & CENTROID_DB))
{
fprintf(stderr, "geocoder database centroid files not available\n");
fprintf(stderr, "please try again with the correct dbpath\n");
return FAILURE;
}
retCode = GeoEngInit(dbPath, dbName, NULL, STREET_DB | CENTROID_DB,
pGeoEngHandle);
if (retCode != SUCCESS)
{
fprintf (stderr, "error %d initializing mapmarkir \n", retCode);
return FAILURE;
}
return SUCCESS;
}
/**************************************************************************
***************************************************************/
Thank you in advanced.
Lee
HealthStreet.
[EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]