• Advertisement

Archived

This topic is now archived and is closed to further replies.

Floats

This topic is 6245 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If GetDlgItemInt(hdwnd,ID_EB1,NULL,1); retrives an int, how do I get hold of floats. My program needs to work with input/outputs that need 3-4 decimal places, how do I do that? Do I need to set my Editboxes up as floats? Thanks Indy

Share this post


Link to post
Share on other sites
Advertisement
A quick solution would be to read it in using GetDlgItemText() and use atof() to convert it to a float.

-------
Andrew

Share this post


Link to post
Share on other sites

  • Advertisement