how to use RIOT dll in C# 开发者_JS百科application? is there a way that i can use it in my program.
It's called p/Invoke. This article tells you (almost) everything you need to know about the subject. It is specific to the Win32 API, but your RIOT API will work exactly the same way. http://msdn.microsoft.com/en-us/magazine/cc164123.aspx
According to RIOT's developer reference guide, "Riot.dll can be used with any programming language capable of using dynamic link libraries. This includes C/C++, Visual Basic, C#, Object Pascal/Delphi, Perl."
So I would say, yes, you can use it in your C# application.
You need to do a [DLLImport("RIOT.dll")] tag over your methods using the header files, as I have done with the Bass project. It isn't that hard, you can probably find examples on the internet.
精彩评论