loading dll files.

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.

A DLL does not have return types or arguments.

A DLL is module containing code, you load the module with LoadLibrary().
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684175%28v=vs.85%29.aspx

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
Thanks for helping.
Topic archived. No new replies allowed.