Thread: ODBC API

ODBC API

From
Brian Furey
Date:
Hello,
im using postgresql and odbc driver with MFC and Visual C++.
I am trying to do bulk update using the ODBC API and its not working.
 

::SQLBindCol(m_hstmt,0,SQL_INTEGER,&m_ppvData[0],0,&sbz);

::SQLBindCol(m_hstmt,1,SQL_INTEGER,&m_ppvData[1],18,&sbz);

::SQLBindCol(m_hstmt,2,SQL_INTEGER,&m_ppvData[2],18,&sbz);

AFX_ODBC_CALL(::SQLSetPos(m_hstmt, wRow, SQL_UPDATE, wLockType));

My problem is binding columns to 'void' pointers.

Suggestions apprec.

Brifure.

 


Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger