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: Hard disk View Problems
Problem: Vodafone Blackberry BIS Exchange 2003 ISA 2000
Problem: XP CD does not run
Problem: Need help setting up 2 Vlans on a 48 port switch to split voice and data
Problem: Quantum Fireballp
Problem: USB Host controller disabled in DELL GX520
Problem: Ext HD not showing full capacity. How do I fix this?
Problem: Mac laptop won't connect to WEP?
Problem: Problem with two-way VPN using two linksys VPN-enabled routers
Problem: Wusb54gr wireless adapetr will not work with vista