code:
$DP = VAL(ReadProfileString("filename","section","key"))

That's really all you need.