Teen Programmers Unite  
 

 

Return to forum top

Win32 Edit control

Posted by drew [send private reply] at February 28, 2002, 06:52:43 AM

how would you get the text to be put into a char or double array? i know that i can use the getdlgitemtext or getdlgitemint functions for char* and int but is there a function for char[] or double[]?

Posted by Psion [send private reply] at February 28, 2002, 08:07:02 AM

char* and char[] are the same thing as far as passing parameters to functions goes, and I think you can use your imagination to convert to double yourself.

Posted by drew [send private reply] at March 06, 2002, 12:05:13 PM

is there a function for converting a char* to double in any of the standard libraries? I could use the code found at http://users.powernet.co.uk/eton/kandr2/krx402.html but I would like to know if there is a shorter way to accomplish this conversion.

Posted by taubz [send private reply] at March 06, 2002, 03:35:48 PM

atod might be what you're looking for.

Posted by drew [send private reply] at March 07, 2002, 12:46:29 PM

thank you, atof is exactly what im looking for.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.