From: iODBC M. <io...@op...> - 2005-10-25 15:18:25
|
Hi Bart, > I have problems getting the SQLBindParameter to work when I use wide > characters. > I keep getting the following error message: > > Invalid data type (0) SQLSTATE=HY004 > > I try to do the following: > > long len = SQL_NTS; > sts = SQLBindParameter( hstmt, 1, SQL_PARAM_INPUT, SQL_C_WCHAR, > SQL_VARCHAR, wcslen( wname)*sizeof(wchar_t), 0, wname, 0, &len); > > If I do the exact same with a non wide-character string, it works ok. I > have tried different ways (found different samples), but still the same > message. > I'm porting my app from Windows to OS X. On Windows it all works fine... > > Any help is appreciated! Can you tell me, which driver you are using. It looks like you are not using a Unicode enabled driver. Best regards, Patrick -- Patrick van Kleef Email : <io...@op...> Maintainer iODBC Web : <http://www.iodbc.org> OpenLink Software Universal Data Access & Data Integration Technology Providers |