在WinCE的C#编程中,需要静态调用C++的动态库,需要添加using System.Runtime.InteropServices

来源:互联网 发布:疯狂美工破解版 编辑:程序博客网 时间:2024/05/22 10:24
using System.Runtime.InteropServices;

        [DllImport("Win32DLL.dll", EntryPoint = "WriteREG_SZToRegTCHAR")]
        private static extern bool WriteREG_SZToRegTCHAR(int iFlag, string regKeyPath, string keyNameToSet, string tcValue);
0 0
原创粉丝点击