c# 引用 C++ DLL 问题!
我现在有一个DLL,叫Qscalculat.dll在D:\test\Qscalculat.dll
引用的代码
[DllImport("d:\\test\\Qscalculat.dll", ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
private static extern void QSCalc1(double f1, double f2, double f4, int m, ref double F, ref double tg, ref double th, ref double tg0, ref double th0, ref double tn0, double tw0, double Fz, double Qz, ref double q, ref double s, int daynum, int totalday);
奇怪的是我在VS2008下,可以正常调用,但是拿VS2010用同样的代码却总是提示找不到模块。 希望大家帮忙看看。 急啊。
谢啦!