[SOLVED] Include .dll without header
-
Hello... I have got a .dll file and explanation of functions included... However, I don't know how to call these functions since I don't have any header... That .dll was built with Microsoft Visual Studio 2010 -> language C#
I also have the whole source code of that .dll file...
-
If it's written in C# then it's CLR (.net) dll. It's not easy to load such creature from pure C++. You would need to bootstrap the CLR runtime in your app or play around with COM. Either way it's gonna be a pain in the you know where.
The best thing I can suggest is to rewrite the dll in C++ or find existing equivalent. A sort of middle-ground solution would be to write your app in C++/CLR which is Microsoft's managed flavor of C++ (more of a Frankenstein's monster really).
-
Oh... I will try to rewrite it into C++... Thank you for answer...
-
Have a look at the "QLibrary":http://qt-project.org/doc/qt-4.8/qlibrary.html class, and the Wiki entry entitled "How to create a library with Qt and use it in an application":http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application