Calling D DLL from C# and passing/retrieving string variables

Andre andre at s-e-a-p.de
Thu Oct 13 07:35:09 PDT 2011


Am Wed, 12 Oct 2011 21:49:14 +0200 schrieb casual.james at yahoo.es:

> 
> -            SetLastError = false, CharSet = CharSet.Auto)]
> +            SetLastError = false, CharSet = CharSet.Ansi)]
> 
> CharSet.Auto will choose UTF-16 unless you add use the Windows ANSI method  
> convention (i.e. name your function "concatenateA"). In D, LPTSTR will use  
> ANSI by default.

Thanks a lot. That was the missing part.
Now it is working.

Kind regards
André


More information about the Digitalmars-d-learn mailing list