C++ and DLL's

Ok, I have a DLL I found on the internet. The only documentation is http://pastie.org/pastes/1121840. How would I call those functions? I'm trying to make a bot.
That documentation alone is useless because it doesn't tell you anything about the calling convention or the parameter list. By searching for one of the function names I found http://pastie.org/1367038/wrap which seems to be the functions in your DLL (did not check much). That list is more appropriate. Still, no calling convention there.

If you have the binary dll, you can probably create a lib file out of it (I haven't done it so I cannot tell you how) so you can link to the functions at compilation time. If the tool that produces the lib doesn't produce an .H file, you'll have to produce it yourself with the link I found.
:O Thanks though! I searched and searched for the API documentation but couldn't find any.. That should help me a lot though..
You could also load the DLL into your application with "LoadLibrary()", find the functions address with "GetProcAddress()" (You have to cast the returned value from this and assign it to a function pointer) and call it that way. This is a bit more verbose then creating an import library, but creating the library can be a PITA.
Topic archived. No new replies allowed.