Click to See Complete Forum and Search --> : OLEDB


Gustavo Lermen
October 5th, 1999, 04:31 PM
I'm using OLEDB to access my datasource with an CDynamicAccessor and I'm having problems to retrieve data with a different type than string.
I don't know how to use
template < class ctype >
bool GetValue( ULONG nColumn, ctype* pData ) const;



Thanks
Gustavo

edunphy
September 28th, 2001, 10:07 AM
GetValue is overloaded. Use the following to avoid any sizeof() errors.

void* pData = m_query.GetValue(nfieldnum);

Where m_query is you CDynamicAccessor