G
Guest
I need to get the DLL name in my ATL COM Server project in the .NET environment. I am not using MFC and also not using Managed C++ extensions.
In previous versions of ATL the following worked fine:
char sz[_MAX_PATH];
GetModuleFileName(_Module.m_hInst, sz, _MAX_PATH);
But _Module is now replaced by _ATLModule and this no longer works (no m_hInst).
Can anyone offer a solution? Thanks
Paul.
In previous versions of ATL the following worked fine:
char sz[_MAX_PATH];
GetModuleFileName(_Module.m_hInst, sz, _MAX_PATH);
But _Module is now replaced by _ATLModule and this no longer works (no m_hInst).
Can anyone offer a solution? Thanks
Paul.