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: Vista user accts/startup programs not global/is there a way for an administrator to make these startup changes global? Permissions question
Problem: WIFI Timecard Badge Scanner - NOT REQUIRING A PC
Problem: Rollback BIOS update
Problem: I can print to HP 7410 locally but not via network...why?
Problem: NO MACHINE NX SERVER -- remotely connect to linux console
Problem: Use XP and mult USB drives to all kids to use my laptop
Problem: Upgrading to Vista from XP
Problem: How would I configure a Cisco 2620 router to connect my home network to a DSL Bridge?
Problem: Image Capture Wizard say it can't find sysprep files
Problem: Remote Control behind a router