filhodaputa
New Member
- Joined
- Apr 29, 2010
- Messages
- 4
- Reaction score
- 0
Ok, I need this request, if someone knows this please post...
Last edited by a moderator:
You can use Encoding.ASCII.GetBytes to convert your string to a byte array with ASCII encoding (each character taking one byte). Then, call BitConverter.ToUInt32 to convert that byte array to a uint. However, a uint is only 4 bytes, so you'll need to do some partitioning of your array first.
uint32_t value = atoi(something.c_str());