System.Runtime.InteropServices.Marshal.StringToHGlobalAuto 
Author Message
 System.Runtime.InteropServices.Marshal.StringToHGlobalAuto

"Copies the contents of a managed String into unmanaged memory,
converting into ANSI format if required."

What is .NET's definition of required?

I'm calling this from a MC++ DLL.

Thanks,
-ken



Mon, 14 Nov 2005 02:37:53 GMT  
 System.Runtime.InteropServices.Marshal.StringToHGlobalAuto
Ken,

Quote:
>"Copies the contents of a managed String into unmanaged memory,
>converting into ANSI format if required."

>What is .NET's definition of required?

If the code is running on an ANSI platform (Win9x, WinME), or put
another way, if Marshal::SystemDefaultCharSize == 1.

Mattias

===

http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.



Mon, 14 Nov 2005 03:59:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. System.Runtime.InteropServices.VTableCallsNotSupportedException

2. catching System.Runtime.InteropServices.COMException

3. System.Runtime.InteropServices.COMException (0x80040100)

4. System.Runtime.InteropServices.Marshal.ReleaseComObject has no effect?

5. can anybody explain the use of System.Runtime.InteropServices class

6. Unhandled Exception: System.Configuration.ConfigurationException: Could not create System Configuration.NameValueSectionHandler, System

7. System::Runtime::InteropServices::Out with Arrays

8. about the namespace System.Runtime.Remoting.Channels.Tcp

9. System.RunTime.Serialization.Formatters.Soap.SoapFormatter

10. BUG in System.Runtime.Serialization.Formatters.Soap.SoapFormater

11. System.runtime.remoting.channels.http?

12. Graphics.DrawLine() produces error: A generic error occurred in GDI+, InteropServices.ExternalException

 

 
Powered by phpBB® Forum Software