On Tuesday, 4 December 2012 at 10:05:16 UTC, Nathan M. Swan wrote:
I've never used ODBC before, but a quick scan of the MSDN docs
suggests that you should use SQL_C_WCHAR instead, maybe using
some D wstring functions too.
BTW, convert sql.ptr -> std.string.toStringz(sql); this is good
practice, though I'm not sure it's your problem.
NMS
Appreciated the prompt help! Unfortunately I've still not fixed
this yet.Changing to SQL_C_WCHAR and using wchar[] to contain the
result value turned out still mess.