日期:2014-05-17  浏览次数:20827 次

C#调用C++ dll在客户的机子不能用
写了个DLL文件,放在客户的机子上不能运行,直接退出,也不知道报什么错,但是在我的电脑上面能正常运行



        [DllImport("CodeInit.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
        public static extern int Code(string path, string str);
   

        public void CodeWrite(string path, string com)
        {
            Code(path, com);
        }


这个是DLL声明和调用,有人遇到过类似问题么

------解决方案--------------------
http://bbs.csdn.net/topics/390545779