From hardcoded to user selectable variable value
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9969229/need-help-to-insert-an-ipaddress-from-an-ini-file">need help to insert an ipaddress from an ini file</a>  </p>
</blockquote>



<p>I have created a C++ win32 window app in MS Visual Studio. My problem is that I am using some open source code in my app that have a hardcoded variable that I need to make dynamic. That is, I want it to be user defined instead of beeing hardcoded as it is now.</p>

<p>The variable is defined as <code>char *ipaddr</code>.</p>

<p>How do I manage to have the user input a value into this variable?</p>

<p>The user should be able to write in an ip address, like ie. <code>192.168.0.181</code>.
Any way, reading a txt file with the address as input, XML or whatever is fine.</p>
