c# e语言 字节集 表示方式

 

   [System.Runtime.InteropServices.DllImport("user32.dll")]
        static extern int PostMessageA(IntPtr h, int msg, int wp, int lp);
        void 文本_投递(IntPtr h,string str) {
            byte[] b = Encoding.GetEncoding("gb2312").GetBytes(str);
            for (int i = 0; i < b.Length; i++) {
                PostMessageA(h, 258, b[i], 0);
            }
        }

 

posted @ 2017-03-25 14:15  c#菜鸟之行  阅读(2096)  评论(0编辑  收藏  举报