Results 1 to 2 of 2

Thread: How Can a .DLL know its caller

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Posts
    76

    Question 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

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width