I am using LoadLibrary and GetProcAddress in a VC++ 6.0 app I have made to call a dll function in a VC++ 6.0 dll I made.
I can call the function successfully. However, I would like to make the code as error-resistant as possible. Is there anyway to determine what parameters a dll expects? In VB, when you declare a dll function and then call it with the incorrect parameters, it raises error 49 to indicate the calling protocol is incorrect. Can I somehow accomplish this from my c++ application as well to ensure that when I call a dll, I am calling it with proper parameters and not corrupting the memory space by using incorrect ones?
Thank you for any help you can give.