23 Jun 2005 15:42
RE: SQLDriverConnectW() returns an error !
Anita Dixit <anita_dixit <at> persistent.co.in>
2005-06-23 13:42:03 GMT
2005-06-23 13:42:03 GMT
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 ? Thanks very much. Regards, Anita -----Original Message----- 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 program > 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. > > Regards, > Anita 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. -- Nick Gorham Easysoft Limited _______________________________________________ unixODBC-dev mailing list unixODBC-dev <at> easysoft.com http://mail.easysoft.com/mailman/listinfo/unixodbc-dev ======================================================================================================== 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. ======================================================================================================== _______________________________________________ unixODBC-dev mailing list unixODBC-dev <at> easysoft.com http://mail.easysoft.com/mailman/listinfo/unixodbc-dev