Microsoft
Software
Hardware
Network
Question : Problem: How do I convert an octal CString to an integer using eVC on WinCE?
I need to convert a 3-digit octal MFC CString (with leading zeroes) to a numeric integer. For example "110" would be 72, and "077" would be 63. It needs to compile using Embedded Visual C++ 4 and run on WinCE 4, and preferably use an efficient API or standard library function.
Answer : Problem: How do I convert an octal CString to an integer using eVC on WinCE?
That means you are compiling UNICODE. Use 'wcstol()' instead, i.e.
1:
int value = wcstol( (LPCTSTR)text, NULL, 8 );
Open in New Window
Select All
Random Solutions
Problem: USB Devices within Thin Client Environment
Problem: Celeron 500 or Pentium III 600
Problem: Yet another Veritas question, backing up to disc then backing up to tape.
Problem: Hard Disk, partition table corrupted
Problem: Hard Disk Errors... Scandisk does not fix them, How do I mark bad sectors ?
Problem: What limits how much power modules you can put into an APC Symmatra 3 phase room UPS unit?
Problem: Can't get IP address for Adhoc Wireless network in Vista
Problem: Copying files from DOS to another location
Problem: How to cancel past due backup/How to become current
Problem: My monitor turns off unexpectedly.