Results 1 to 3 of 3

Thread: Sharing Variables in through a DLL

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Sharing Variables in through a DLL

    I have an activex dll that logs a user into a SQL server and stores some user info. I have 2 programs that could be using the dll at the same time. Is there a way to persist the info or whatever so that if the 1st program is logged in then the 2nd program can just get the information that the 1st program is using?

    Like if TimeTracker (the 1st program) logs in thru the dll and the dll has the username and permissions can the 2nd program (NotesManager) just read the username and premissions from the dll instead of relogging in?

  2. #2
    Maexchen
    Guest
    It's very easy
    set the classes to Multiuser,
    then insert an normal Modul
    Declare the shared Variable as Public in the normal Modul

  3. #3
    Junior Member robinm's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    19

    Properites

    Alternatively declare some public properites.
    These will be accessible to external applications.

    When you initially log the user in with the 1st dll
    set the property to whatever you need to be (username etc)

    The when the secon .dll need to access the logged in name it can read from the property.
    To imitate is human... to copy without recognition is theft.

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