Re: Return a string from C++ Native to C# 64-bit
- From: Göran Andersson <guffa@xxxxxxxxx>
- Date: Wed, 15 Oct 2008 09:00:34 +0200
Franck wrote:
In your case, i guess you will need to pass a 64bit string
i C# a 64bit string is using string builder with 64bit int limits
like :
StringBuilder sb = new StringBuilder(Int64.MaxValue, Int64.MinValue);
A 64 bit string? What are you talking about?
The C++ code returns a byte array that contains a string that is encoded as Ansi (Encoding.Default). This is decoded into a unicode string by the marshalling code. A string in .NET looks the same regardless if it's on a 32 bit platform or a 64 bit platform.
--
Göran Andersson
_____
http://www.guffa.com
.
- Follow-Ups:
- Re: Return a string from C++ Native to C# 64-bit
- From: jimbrown
- Re: Return a string from C++ Native to C# 64-bit
- References:
- Return a string from C++ Native to C# 64-bit
- From: jimbrown
- Re: Return a string from C++ Native to C# 64-bit
- From: Franck
- Return a string from C++ Native to C# 64-bit
- Prev by Date: Parsing Amazon XML using Linq
- Next by Date: RE: Embedd XML within XML - Possible ??
- Previous by thread: Re: Return a string from C++ Native to C# 64-bit
- Next by thread: Re: Return a string from C++ Native to C# 64-bit
- Index(es):
Relevant Pages
|