0 pts.
 Instance of a dll and deploying dll and standard exe.
i come to the problem directly. i have a dll and standard exes created to work together. i have more than one exes that utilize the dll located on the server (exes located on a remote clients). dll has a global variable that will be operated by the exes. i need to create a single instance of dll that should be accessed by all exes and operate on the same global variable. suppose one exe sets the global variable equal to one then another exe should see the value of global variable equal to one. please assist me how to set the dll project properties so that only single instance is created for all the exes. Now i am using remote automation connection manager to deploy dll and exes on servers and clients. Please let me know any other methods for the same. thank you

Software/Hardware used:
ASKED: December 6, 2004  10:42 AM
UPDATED: December 6, 2004  11:24 AM

Answer Wiki:
You could store the global variable in the registry or in an ini file and let all the exe's read it from there.
Last Wiki Answer Submitted:  December 6, 2004  11:07 am  by  Mcp111   0 pts.
All Answer Wiki Contributors:  Mcp111   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You probably don’t want to store it in the server registry, in many environments you would not have permissions to do that. The .ini file on the server would work if access to the file was infrequent enough. You might have to resort to storing it in a database table and let the DBMS handle locking and contention issues for you if access to the value was frequent. Maybe a dll isn’t ideal for this purpose. In .net you might be able to use metadata for this or maybe consider a web service. Good luck and I hope you post the resolution.

 5 pts.