|
-
Mar 27th, 2001, 05:00 AM
#1
Can I request a session variable from a dll. To pass the value as a property would require huge rewritings of code. If not is there any other way I could do it. The scenario is I have a database access dll. This is called from asp or from other dll's. The problem has arrisen whereby I need to pass the connection string to the component as we now have more than one database. Any ideas?
-
Mar 30th, 2001, 11:22 AM
#2
DLL's can't access session variables. You have to pass the session variable to the procedure as a parameter.
If you want to maintain compatability with the current version of the DLL, you could either use an INI file or registry settings for your database connection information, then add a private function to the DLL that is called whenever a database connection is needed.
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
|