LPSTR holding a hex number -> DWORD

I have a LPSTR value holding a numeric value in Hex, such as "00001a9d". How can I easily convert this into a DWORD variable?

atoi and atof won't help me.

Any ideas?
m26Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
cyark1Connect With a Mentor Commented:
Use strtol function. The function gets a base as its third parameter.
0
All Courses

From novice to tech pro — start learning today.