[Oledb-dev] Provider question

Shachar Shemesh psql at shemesh.biz
Sat Apr 8 17:33:22 GMT 2006


Arvo wrote:

>Sorry to kick in :) I've deralt with siliar problems, compiling driver with VS.NET 2002. My workarounds and comments:
>  
>
And you didn't say anything? How is free software supposed to improve if
people keep their suggestions to themselves?

>   DBROWOFFSET cRowsInSet = (DBROWOFFSET)pT->m_rgRowData.GetCount();
>
>Probably same in VS 2005.
>  
>
MS? Changing interfaces like that? No way!

>In my experiments I just duplicated declarations in PgRS.h:
>  
>
A minor correction:

>	int GetSize() const
>	{
>	        return PQntuples(m_res);
>	}
>	int GetCount() const
>	{
>  
>
                      return GetSize();

>	}
>
>Of course it would be correct include some VS version checking preprocessor #if.
>  
>
Except we depend on the ATL version, not the compiler version at all.

>>Care to explain why this change was necessary? Is "ATL_TRACE_CATEGORY"
>>not defined or something?
>>    
>>
>
>Yes, it is not defined. It can be defined as (I'm not sure, is this correct - but it's usable):
>
>  #ifndef ATL_TRACE_CATEGORY
>  #define ATL_TRACE_CATEGORY 0xFFFFFFFF
>  #endif
>
>somewhere in header files (I declared that in StdAfx.h), this way no cpp source code needs change.
>  
>
No, that's silly. The code never ever drops a message anyways. I removed
it, as per Konstantin's suggestion.


The current CVS should compile fine on VS2005, according to my
understanding (I don't have it).


          Shachar



More information about the Oledb-devel mailing list