Windows analog to UNIX atoh() function

Is there in Windows API or in MFC any analog to atoh() function?

atoh() converts a string containing a hexadecimal number into an unsigned number like

unsigned x = atoh("A");

and x = 10 after the operation.

In Windows I have a CString, containing "A". How can I convert it to int?


long x = strtoul("A", (char **) NULL, 16);
// x will be 10 decimal

Need Your Help

Problem regarding 3.0's "hashlib" module

python python-3.x python-2to3

I've been working on getting a 2.5 module ported to 3.0, mostly for my own education, when I've gotten stuck. The class "Builder" has as its init:

Get Just the Body of a WCf Message

c# xml wcf soap

I'm having a bit of trouble with what should be a simple problem.