Posted on 2000-05-04
cannot convert a string to a float.
CString name, val;
for (int iii = 0; iii < 15; iii++)
val = app->GetProfileString("profile",name, "");
ppdata[iii] = "%f", val
ppdata is an array of floats.
the registry entry that is read is a number 12,67 for example but i can only get it out as a string if i am right (?).
Now how do I convert a string to a float ??
could someone copy/paste a list of possible conversions here as i allways fall across one i cannot do.
thanks for helping.