This is simplified scenario
I have three Dll's named DllA,DllB and DllC.
DllB and DllC access functions inside DllA.
My question is how would I know which Dll(DllB or DllC) access function inside DllA?
Ex.
Inside DllA
class dllA
{
dllA()
{
// here I want to know the name of the Dll who called the constructor
}
};
Thank You
Suranjith
But I want to do it using C++
Pass a parameter that tells the function who called it?
I want to do it without passing the parameter. I Want to use mechanism to automatically detect which function calls it
Functions call your constructor, not modules. You cannot know that way unless you pass in the module instance.