i am a beginner at dlls. i can load a dll file if know the return types and arguments.
but how to load a function from a dll file if i don't know return types and arguments.
Once you've loaded the DLL, you can try to find the exported function in that module with GetProcAddress(). The function returns the address of the function if it finds it or NULL. If the address is not NULL, it's up to you to use that function pointer correctly. That is, you need to know the calling convention, the arguments and the return type to call the function correctly. http://msdn.microsoft.com/en-us/library/windows/desktop/ms684175%28v=vs.85%29.aspx