使用C ++(Win32)导入DLL [英] Import a DLL with C++ (Win32)
本文介绍了使用C ++(Win32)导入DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在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#中不可用。
Is there a way of declaring an imported function in C++ like in 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:
- http://stackoverflow.com/questions/1253769/explicit-loading-of-dll
- http://stackoverflow.com/questions/847396/compilea-a-
- http://stackoverflow.com/questions/539358/calling-functions-in-a-dll-from-c
- http://stackoverflow.com/questions/554551/call-无c-dll-without-header
- http://stackoverflow.com/questions/1345671/how-to-use-dlls
- http://stackoverflow.com/questions/1080662/is-this-a-good-way-to-use-dlls- c
- http://stackoverflow.com/questions/1253769/explicit-loading-of-dll
- http://stackoverflow.com/questions/847396/compile-a-dll-in-c-c-then-call-it-from-another-program
- http://stackoverflow.com/questions/539358/calling-functions-in-a-dll-from-c
- http://stackoverflow.com/questions/554551/call-function-in-c-dll-without-header
- http://stackoverflow.com/questions/1345671/how-to-use-dlls
- http://stackoverflow.com/questions/1080662/is-this-a-good-way-to-use-dlls-c
这篇关于使用C ++(Win32)导入DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文