If i compile with visual c++ 6.0 or 2005 i get the same problem.

/////////
string user = "system";
string passwd = "xxx";
string db = "Testx";

try{
env = Environment::createEnvironment(Environment:EFAULT);
conn = env->createConnection(user,passwd,db);

}catch(SQLException ea)
{
cerr << ea.getMessage() << endl;
}
//////////

the message is "ORA-24960: the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255"

I have tried downloading the library's on oracle.com for the 8.0 version but the error doesn't not change. I am pretty sure that I included all of the correct directories into the project.

I also added the directory to windows PATH but then I get msvcrt80.dll missing error.