RE: strange integer problem

2001-07-12 Thread Jorge del Conde
Hi, Your syntax is incorrect. >cout << "ID: " << *Row[0]; // it returns "48 too much" It seems you are printing the ordinal value of Row[0] Try using cout << "ID: " << Row[0]; Instead. >cout << "Name: " << (char *) Row[1]; This works because all you're doi

RE: strange integer problem

2001-07-12 Thread Don Read
On 12-Jul-01 Christian Terboven wrote: > Hi all! > > I`ve got a quite strange problem. > When querying my database, all my integer values are exactly 48 too high. > > > > Assuming the following code (using Linux): > > Database layout: > (ID INT, Name CHAR(100), ...) > > m_pResult = mysql_st