DllImport 调用问题

cuayi 2012-03-06 04:09:00
有个DLL 名为 cyp.dll
如果直接引用的话,使用方法如 下:

cype c = new cype();

int i;
i= c.intformat(string);

如果用dllimport怎么写?

我只知道 [DllImport("cyp.dll")]

求下面的写法!!
...全文
60 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
EnForGrass 2012-03-06
  • 打赏
  • 举报
回复
c.intformat(string)这个方法的原型是怎样的,尤其是参数
[DllImport("cyp.dll")]
public extern int intformat()

110,545

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧