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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -