Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Persistent Variables in a DLL

Status
Not open for further replies.

LonniePurvis

Programmer
Sep 11, 2002
5
US
I have written a DLL that accesses a registry setting. This DLL is accessed from an ActiveX object we created for Database Access, and XML read/writes. My boss has asked me to created property pages within my ActiveX that can be used to set the ServerName, DatabaseName, UserID, and Password. This information will then be passed to the DLL. The DLL is updated whenever the each property in the ActiveX is changed. The problem is, the DLL doesn't retain the information. Is there some way to make a variable in the DLL persistent?
 
You can write it to the registry, or to a file. I'm afraid you can't store it in the binary, if that's what you wanted to do.....
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top