dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] String marshalling


From: Marc Haisenko
Subject: Re: [Pnet-developers] String marshalling
Date: Sun, 11 Sep 2005 14:46:09 +0200
User-agent: KMail/1.7.1

On Sunday 11 September 2005 07:08, Marcus wrote:
> According to my docs, CharSet.Unicode will ``Marshal strings as Unicode
> 2-byte characters.''
>
> Under Windows, using the CharSet attribute on the DllImport affects all
> string arguments. It is also possible to use the MarshalAs attribute if you
> want affect how strings are marshaled on a per-parameter basis.
>
> Another consideration in that using CharSet on a Dllimport attribute is
> supposed to cause a "W" or "A" to be appended to the entry point name, at
> least under Windows.

Hmmm... thanks for the info, I'll have a closer look at this on Monday.
C'ya,
        Marc

Attachment: pgpyjMtYZzieY.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]