On 15/11/2026 08:12, Igor Korot wrote:
> ret = SQLBindCol( m_hstmt, 1, SQL_C_WCHAR, &styleName, 33,
> &cbStyleName );
That should be
ret = SQLBindCol( m_hstmt, 1, SQL_C_WCHAR, &styleName, sizeof(styleName) ,&cbStyleName );
The buffer length argument is always the size of the buffer in bytes, not in characters (in this case).
In this case sizeof(styleName) will be 66, not 33;
--
Nick Gorham