[unixODBC-dev] SQLDriverConnectW() returns an error !
anita_dixit at persistent.co.in
Thu Jun 23 14:42:03 BST 2005
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 ?
Thanks very much.
From: unixodbc-dev-bounces at easysoft.com
[mailto:unixodbc-dev-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Thursday, June 23, 2005 4:09 PM
To: Development issues and topics for unixODBC
Subject: Re: [unixODBC-dev] SQLDriverConnectW() returns an error !
Anita Dixit wrote:
> Hi Nick,
> Thanks for the prompt reply!
> If I input the connection string as per below mentioned method, the
> indeed proceeds. However, now there is a bus error during the execution of
> the same API - SQLDriverConnectW.
> Stack frames show that unixODBC SQLDriverConnectW API calls the driver's
> SQLDriverConnectW. This in turn calls the driver's own function but the
> program fails for wcslen() function.
> Do you think if anything is further missing in the sample program?
> Thanks again.
It may be that the driver (you didn't say which one) is expecting 4 byte
unicode. in which case recompile unixODBC with SQL_WCHART_CONVERT defined.
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