Storing a variable?

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
Xerpher
Posts: 9
Joined: 2003-06-02 09:34
Location: Canada
Contact:

Storing a variable?

Post by Xerpher » 2003-06-09 02:22

Sorry for this simple question, but how do I set a variable that is set in the uploads tab in the settings dialog so that I can access it within the ShareManager class?

sarf
Posts: 382
Joined: 2003-01-24 05:43
Location: Sweden
Contact:

Post by sarf » 2003-06-09 08:57

Ehm... OK, here a short-short howto :

Add a variable to the SettingsManager.
Add an edit field (or somesuch) to the IDD_UPLOADPAGE or whatever.
Connect the variable with the edit field in the UploadPage.cpp.
Use the variable in SettingsManager from the ShareManager class.

Sarf
---
The Eleventh Commandment: Thou shalt not get caught.

Locked