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

Xerpher
Posts: 9
Joined: 2003-06-02 14:34
Location: Canada

Storing a variable?

Post by Xerpher » 2003-06-09 07: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 10:43
Location: Sweden

Post by sarf » 2003-06-09 13: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.

Who is online

Users browsing this forum: Google [Bot] and 0 guests