简体   繁体   中英

Use C-DLL from within a C# application?

when a DLL comes with plain, undecorated C-functions, this DLL itself does not contain any information regarding parameters and return types of these functions.

So when I want to use such a DLL out of a C# application: how/where do I define the types of these functions in my C#-code?

Thanks

If you want to use win32-Libraries just have a look at http://www.pinvoke.net/ , there are many samples of how to invoke win32 calls and how to handle datatypes/conversions. Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM