actually its hard coded as access .. if it doesnt finda reg entry for a dll
the part to change is in trackermgr.cpp
Code:
if( strDriver.find( "psqlodbc.dll" ) != string::npos )
_type = PostgreSQL;
else
_type = PostgreSQL;
// _type = Access;
i overwrote the csource.. it reads pgsql fine now.. but errors on some undeclared variable i...
this code is really messed when converted to vs 2005.
not sure what do do at this point..
bad code is in trackermgr.cpp
Code:
char *pszX = strtok( (char *)strPts.c_str(), " " );
for( int i = 0; i < 11; i++ )
{
char *pszY = strtok( NULL, " " );
if( !pszX || !pszY )
break;
pts[i].x = atoi( pszX );
pts[i].y = atoi( pszY );
if( pts[i].x < -500 || pts[i].x > 2000 )
pts[i].x = 100;
if( pts[i].y < -500 || pts[i].y > 2000 )
pts[i].y = 100;
pszX = strtok( NULL, " " );
}
for( int i = 0; i < 11; i++ )
{
pts[i].x = pts[i].y = 100;
strRegValue += " 285 173";
}
reg[ strReg ] = strRegValue;
reg.save();
especially
Code:
for( int i = 0; i < 11; i++ )
{
pts[i].x = pts[i].y = 100;
strRegValue += " 285 173";
}