exern (C) linkage problem

Charles Hixson charleshixsn at earthlink.net
Sun Jul 18 14:16:36 PDT 2010


On 07/18/2010 01:56 PM, bearophile wrote:
> Charles Hixson:
>> extern (C)   void   dbdefine (char[] inStr, ref char[255] outStr);
>
> I think C and D char[] don't go well together. D arrays are 2-word long structs. Try again with something simpler, like a pointer and length.
>
> Bye,
> bearophile

Thanks, changing everything to char pointers and passing, e.g., 
inStr.ptr worked.


More information about the Digitalmars-d-learn mailing list