调用成功,不关闭主程序怎么点都没问题,可是我在退出主程序的时候报以下错误:
GDI+ windows 内存不能为"read"
调用方式
[DllImport("mydll.dll")]
public static extern void Useinfo();
GDI+ windows 内存不能为"read"
调用方式
[DllImport("mydll.dll")]
public static extern void Useinfo();
procedure Useinfo();stdcall;export;
[DllImport("mydll.DLL", CallingConvention=CallingConvention.StdCall)]
public static extern void Useinfo();
[DllImport("mydll.DLL", CallingConvention=CallingConvention.StdCall)]
public static extern void Useinfo();这个方法试过
里面只放了一个showmessage
一样也是出错
谢谢!showmessage('11');delphi里直接这样写的! 我拿到2003下是可以调用的 就是关闭的时候,会报内存出错! 另我检查了我的vs2005的版本为PE版 估计你用的是term版!等我下个团队版的试试!