一、调用步骤
1、准备好C++dll库;
2、将dll库放入exe目录下,或放在某个固定的文件目录下;
3、使用.NET的Interop机制引入C++dll到C#程序中,声明接口函数,例:
[DllImport("Kernel32")]
public static extern int WritePrivateProfileString(string Section, string Key, string Value, string FilePath);
[DllImport("C:\\Users\\conglin\\AppData\\Roaming\\ShuxiangTech\\LTShiyiCommon\\cache\\updatedll\\CryptEnDe.dll", EntryPoint = "CFB_AESEncryptStr_BASE64")]
public static extern