CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: OLEDB

  1. #1
    Join Date
    May 1999
    Location
    RS, Brasil
    Posts
    9

    OLEDB

    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




  2. #2
    Join Date
    Sep 2001
    Location
    NY,NY
    Posts
    17

    Re: OLEDB

    GetValue is overloaded. Use the following to avoid any sizeof() errors.

    void* pData = m_query.GetValue(nfieldnum);

    Where m_query is you CDynamicAccessor


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured