DLL中导入的方法在C#中编写 [英] Import methods from DLL wrote on C in C#

查看:101
本文介绍了DLL中导入的方法在C#中编写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


[ DllImport "DLL.dll" ,EntryPoint = "Word" )]


外部静态无效Word();


编译器写我 - 找不到方法Word中的入口点!


在做什么?

解决方案



你需要正确的DLL.DLL路径:


[



DllImport @" C:\Test\COBOL \WINDLL.DLL" )]

贝恩德


doing

[DllImport("DLL.dll", EntryPoint="Word")]

external static void Word();

compiler write me - not found entry point in method Word!

What doing me?

解决方案

Hi,

you need the right Path to the DLL.DLL like:

[

DllImport(@"C:\Test\COBOL\WINDLL.DLL")]

Bernd


这篇关于DLL中导入的方法在C#中编写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆