[DllImport("DeCode.dll"]
public static extern string EnDeCode(string StrDeCode);
调用dll,dll文件在VB中调用是成功的,用其中的EnDeCode方法来解码编码。可是在c#中提示找不到EnDeCode入口点的错误,我用Depands.exe查看DLL中的函数名,结果根本没有可用的函数名,只有下列四个函数名:DLLCanUnloadnow,DllGetClassObject,DllRegisterServer,DllUnRegisterServer.根本没有编码的函数,可是VB下可以调用该方法啊,我晕了。谢谢各位指点迷津啊
public static extern string EnDeCode(string StrDeCode);
调用dll,dll文件在VB中调用是成功的,用其中的EnDeCode方法来解码编码。可是在c#中提示找不到EnDeCode入口点的错误,我用Depands.exe查看DLL中的函数名,结果根本没有可用的函数名,只有下列四个函数名:DLLCanUnloadnow,DllGetClassObject,DllRegisterServer,DllUnRegisterServer.根本没有编码的函数,可是VB下可以调用该方法啊,我晕了。谢谢各位指点迷津啊
不认识
[DllImport("GPRSDLL.DLL", EntryPoint = "DSStartService")]
public static extern bool DSStartService(ushort uiListenPort);