[unixODBC-dev] SQLDriverConnectW() returns an error !
anita_dixit at persistent.co.in
Fri Jun 24 08:40:53 BST 2005
I compiled the code with SQL_WCHART_CONVERT. However, with the original
code, problem remains the same. i.e. flow passes to Driver's
SQLDriverConnectW function and a bus error occurs for wcslen().
I was wondering if sizeof(SQLWCHAR) would give 4 bytes on defining
SQL_WCHART_CONVERT. It gives me 2 bytes as the size.
From: unixodbc-dev-bounces at easysoft.com
[mailto:unixodbc-dev-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Thursday, June 23, 2005 8:16 PM
To: Development issues and topics for unixODBC
Subject: Re: [unixODBC-dev] SQLDriverConnectW() returns an error !
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
>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 ?
and your original code should work.
unixODBC-dev mailing list
unixODBC-dev at easysoft.com
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
Warning: Although Persistent Systems Pvt. Ltd. has taken reasonable precautions to ensure no viruses are present in this email; the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
More information about the unixODBC-dev