I would like to be able to interface to DLLs without having to load the
DLL and its functions explicitly (via LoadLibrary(), GetProcAddress(),
etc.). I am not sure how to do it with Mingw gcc in respect of my own
DLLs. Yes, Mingw gcc does it for things like user32, kernel32, gdi32,
etc., wherein one only needs to link the relevant libraries
("-luser32", etc.). However, I don't know how libuser32.a or any of the
others manages to tell whoever (the compiler? the linker? the program?)
that the bodies of the routines are not in the object files inside the
library, but in a (named) DLL, and how the program gets to load that
DLL automatically. For example, is there a GNU "implib" utility that
does this, or how do you guys do it? I guess 'dlltool' and/or 'ld' may
have something to do with it - but I don't know the mechanism or the
switches that they would need to achieve it.
All pieces of relevant information will be gratefully received.
Best regards, The Chief
Prof. Abimbola A. Olowofoyeku (The African Chief)