ansi.c unicode.c ?
am 04.03.2009 04:52:04 von yijun li
--000e0cd3326e984a69046442f936
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
hi,everyone,
I'm reading and testing the sourcecode of mysql_connector_odbc_5.1.5.
i found ansi.c include function can not be called.
when i use the client code call *SQLConnect*, from the log file,the result
is "i called the *SQLConnectW*"?
why?
**
--000e0cd3326e984a69046442f936--
Re: ansi.c unicode.c ?
am 04.03.2009 05:47:06 von Jess Balint
On Wed, Mar 04, 2009 at 11:52:04AM +0800, yijun li wrote:
> hi,everyone,
> I'm reading and testing the sourcecode of mysql_connector_odbc_5.1.5.
> i found ansi.c include function can not be called.
>
> when i use the client code call *SQLConnect*, from the log file,the result
> is "i called the *SQLConnectW*"?
>
> why?
>
> **
This is due to the driver manager. It uses the unicode functions if they
are available. Also, the ODBC headers will replace calls to SQLConnect()
with SQLConnectW() if you have the UNICODE cpp macro defined.
Jess
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org
Re: ansi.c unicode.c ?
am 04.03.2009 09:45:13 von Martin Evans
Jess Balint wrote:
> On Wed, Mar 04, 2009 at 11:52:04AM +0800, yijun li wrote:
>> hi,everyone,
>> I'm reading and testing the sourcecode of mysql_connector_odbc_5.1.5.
>> i found ansi.c include function can not be called.
>>
>> when i use the client code call *SQLConnect*, from the log file,the result
>> is "i called the *SQLConnectW*"?
>>
>> why?
>>
>> **
>
> This is due to the driver manager. It uses the unicode functions if they
> are available. Also, the ODBC headers will replace calls to SQLConnect()
> with SQLConnectW() if you have the UNICODE cpp macro defined.
>
> Jess
>
>
I believe you can force ANSI calls using a postfix of A - e.g.,
SQLConnectA - if you decide you need to.
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org