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.

GetFileVersionInfoSize GetFileVersionInfo

The file version will be used to receive.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -