I have a third party dll with no lib or header file to use in my c++ app. That’s why I use LoadLibrary(_T(“xxx.dll”)) to load it. And I can reach its functions with GetProcAddress() function.
There is a struct in this dll and I have to reach it too. What should I do to reach and use it? I have looked over the site but found just examples with c# not c++. What is the way of doing this in c++?
Thanks…
If you know the syntax of the struct, for example from a C# definition then you can simply add its definition to a .h file, include it in your C++ source file and use it. that’s all.
but if your struct is some kind of class and has member methods then you should know the decorated name of member methods, load them from .dll dynamically and call them as C functions.