D2 (Debian) + MSSQL
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 14 18:55:50 PDT 2014
On Wed, 15 Oct 2014 01:48:58 +0000
Sergey via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> Now it's like:
> DBCHAR[255] table_field;
> dbbind(dbconn, 1, NTBSTRINGBIND, 0, cast(BYTE*)&table_field);
>
> But I need to may be:
> ubyte[] ubyte_value = [];
> dbbind(dbconn, 1, NTBSTRINGBIND, 0, ubyte_value);
> (it does not work of course)
cast to the rescue! any pointer is an array too. just cast it!
`cast(ubyte[])table_field`, for example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141015/d0681bb6/attachment-0001.sig>
More information about the Digitalmars-d
mailing list