c++ - Retrieving DLL name, not calling application name -
I wrote two com classes in C ++, in which an MFC is contained in DLL. Those third-party applications are being loaded as plugins.
How do I get the filename and version number of DLL from those classes?
The main DLL entry gives you the handle of your DLL.
extern "c" int APIITI delmen (histine HInstance, dword dwReason, lpvoid lpReserved)
and
GetModuleFileName (HInstance, buffer, MAX_PATH);
can be used to obtain DLL's filename.
The file version will be used to receive.
Comments
Post a Comment