|
-
Feb 9th, 2002, 11:39 AM
#1
Thread Starter
Lively Member
How Can a .DLL know its caller
I am posting this question her, because I suspect it will require an API call. When within the code of a DLL (a class I am writing), when I use the APP.PATH etc. I get the DLL and not the calling application. Understandable, but not what I wanted. How can I get the APP information for the calling application?
Can anyone please advise me?
Thanks in advance,
Michael
-
Feb 9th, 2002, 02:58 PM
#2
Frenzied Member
What you are dealing with is COM/COM+ (the architecture that powers Classes, Controls, ActiveX, and all that junk)
There is no way that I know of to get this information, but you can add a property to your class called CreatorPathName, and when you call the class, set CreatorPathName to the path of the app that calls it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|