用C ++导入DLL(Win32) [英] Import a DLL with C++ (Win32)
本文介绍了用C ++导入DLL(Win32)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C ++中导入DLL(minifmod.dll)?
我想能够调用此函数DLL。我已经知道函数的参数列表,但我不知道如何调用它。
I want to be able to call a function inside this DLL. I already know the argument list for the function but I don't know how to call it.
有没有办法在C ++中声明导入的函数,在C#中
推荐答案
用于声明导入函数的c#语法在c ++中不可用。这里有一些关于如何使用DLL的其他SO问题:
The c# syntax for declaring an imported function is not available in c++. Here are some other SO questions on how to use DLLs:
- 显式加载DLL
- 编译C / C ++中的DLL,然后从另一个程序中调用它
- 从C ++调用DLL中的函数
- 没有标题的c ++ dll中的调用函数
- 如何使用dll?
- 这是使用dll的好方法吗? (C ++?)
- Explicit Loading of DLL
- Compile a DLL in C/C++, then call it from another program
- Calling functions in a DLL from C++
- Call function in c++ dll without header
- How to use dll's?
- Is this a good way to use dlls? (C++?)
这篇关于用C ++导入DLL(Win32)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文