Instance of a dll and deploying dll and standard exe.

0 pts.
Tags:
ActiveX
Development
Visual Basic
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
ASKED: December 6, 2004  10:42 AM
UPDATED: December 6, 2004  11:24 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You could store the global variable in the registry or in an ini file and let all the exe’s read it from there.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Jstropp
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following