Passing string from D to c++

Dicebot public at dicebot.lv
Tue Jul 30 13:02:49 PDT 2013


On Tuesday, 30 July 2013 at 19:52:44 UTC, Milvakili wrote:
> I'm linking D with C++ lib.a file.  When the C++ function has 
> compatible data types I can call them from D.  But when I 
> changed the parameter to string I got bunch of errors.
>
> Data Type Compatibility table does not include strings.  Is 
> there a way of passing strings?

http://dlang.org/phobos/std_string.html#.toStringz


More information about the Digitalmars-d mailing list