Problem with porting OLE DB provider to Studio 2005

I have the source code of an OLEDB provider written in C++ using Visual Studio 6.0. Now I want that by making minimum possible changes, I should be able to open the project in Visual Studio 2005, compile it there and it should work i.e. give results the same as the earlier code was giving.

I opened the project in Visual Studio 2005. The editor made some conversions and a .sln file was generated. On compilation I got lots of error. I made changes in Project Properties dialog as recommended in msdn. This got rid of lots of compilation errors.

But one error remained. The error is : -

error C2660: function does not take 2 arguments.

When I double click on the error message in the output window, then it opens file Atldb.h and the following line is reached:-

if( ! pT->m_rgRowHandles.Lookup((RowClass::KeyType)hThisRow, pRow1) )

May be it is because the earlier code was using Atldb.h under Microsoft Visual Studio\...

and the new one is using that under Microsoft Visual Studio 8\...

Please let me know what change I should make to make the project compile.
[1138 byte] By [avinash_sahay] at [2007-11-20 1:38:35]