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: Programing buttons on Moto Q for 'Fast Forward' and 'Rewind' for Windows Media Player 10 Mobile
Problem: Connecting Monitor To Grpahics Card
Problem: Using Cisco 3560\3750 SFP port for Tape Library
Problem: Fake Audio Driver
Problem: Bizhub c350 - one out of for Mac's can see it
Problem: Color prining works fine from IE 6 but failsto print colors properly from Word 2000 or Word 2003
Problem: routing based on specific ip addresses
Problem: Get XP Spanned Disc to Linux
Problem: Error message: when starting computer.
Problem: QOS exceeded limited numbers of aggregate policers