C++中如下:extern "C" _declspec(dllexport) bool _stdcall ImeConvert(char *str)
C#中:[DllImport("IMEDll.dll",EntryPoint="ImeConvert",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]
public static extern int ImeConvert(int aa);
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
//char a1[20]="极点";
string s1="极点";
ImeConvert(s1);
}
编译通过,也会显示网页,但就是无法进行到DLL中,请大家指点下,谢谢。
C#中:[DllImport("IMEDll.dll",EntryPoint="ImeConvert",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]
public static extern int ImeConvert(int aa);
private void TextBox1_TextChanged(object sender, System.EventArgs e)
{
//char a1[20]="极点";
string s1="极点";
ImeConvert(s1);
}
编译通过,也会显示网页,但就是无法进行到DLL中,请大家指点下,谢谢。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货