error C2664

Hi,

I pretty new to c++. I am upgrading my project from VS2008 to vs2010. When i build my project in vs2010 on windows 7, 32bit machine it gives the following errors. But the same project builds fine on windows XP machine.


BGLogoList.cpp(99): error C2664: 'IInvoiceFormat::LogoSelect' : cannot convert parameter 2 from '_Recordset **' to '_Recordset_Deprecated **'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

BIStufferMarkList.cpp(98): error C2664: 'IInvoiceFormat::StufferMarkList' : cannot convert parameter 1 from '_Recordset **' to '_Recordset_Deprecated **'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

and a lot like these. The following is already set

Configuration Properties -> General
In the right hand side window - For Character Set select Us eMulti-byte character set .

Please let me if the given info in not sufficient to help me.
Thanks in advance.
You may have a later MDAC on your Windows 7 box. You probably need to use NewRecordset. I can't verify any of this myself as I\m not on a Windows box at the moment.

http://msdn.microsoft.com/en-us/library/ee267508(v=bts.10).aspx
Topic archived. No new replies allowed.