CharSeT.Ansi does not contain defination for ansi
问题 In C# i am trying to add some additional info like [DllImport("\\SD Card\\ISAPI1.dll", CharSet = CharSet.Ansi)] but build process giving error Error 1 'System.Runtime.InteropServices.CharSet' does not contain a definition for 'Ansi' and the same error "does not contain a defination" i am receiving with Marshal.PtrToStringAnsi(intPtr); i am creating a c# application for WinCE 6.0 回答1: The compact framework does not support ANSI at all. Hence those parts of the framework relating to ANSI do not