Call C function - Access violation
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 3 05:25:04 PST 2016
On Sunday, 3 January 2016 at 13:23:25 UTC, Gary Willoughby wrote:
> I think I've noticed one problem with the code above. You are
> using `text.ptr`. You shouldn't do that because you are passing
> a pointer not an array. Just use `text`.
Forget this line, my mistake. Use `toStringz` and pass a pointer
instead of an array.
More information about the Digitalmars-d-learn
mailing list