Dll issue

Dec 14, 2009 at 10:04am
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
Dec 14, 2009 at 4:04pm
You can check it with depends.
http://www.dependencywalker.com/
Dec 15, 2009 at 3:09am
But I want to do it using C++
Dec 15, 2009 at 3:39am
Pass a parameter that tells the function who called it?
Dec 15, 2009 at 6:39am
I want to do it without passing the parameter. I Want to use mechanism to automatically detect which function calls it
Dec 15, 2009 at 4:34pm
Functions call your constructor, not modules. You cannot know that way unless you pass in the module instance.
Topic archived. No new replies allowed.