[unixODBC-dev] SQLDriverConnectW() returns an error !

Nick Gorham nick.gorham at easysoft.com
Thu Jun 23 15:45:56 BST 2005


Anita Dixit wrote:

>Thanks for the input, Nick!
>That was helpful indeed! I wondered if this is documented anywhere.
>As I am getting bus error for wcslen(), I presume the driver is expecting 4
>byte Unicode.
>If I compile unixODBC with SQL_WCHART_CONVERT defined, I wonder mapping of
>char to wchar which you mentioned in the earlier mail will not do the task.
>What conversion method should be used in that case so as to provide
>appropriate SQLWCHAR data to SQLDriverConnectW function ?
>  
>

compile with

SQL_WCHART_CONVERT

and your original code should work.

-- 
Nick




More information about the unixODBC-dev mailing list