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: port problem
Problem: What is a SAN Header??
Problem: Quickest way to download pictures from iPhone
Problem: how to go about wiring a water pump- looking for solutions- please help
Problem: Intermittent "Operating System Not Found"
Problem: make 2 network cards run off same ip
Problem: I've connected my PC to my LG LCD tv and the tv displays "Invalid Format".
Problem: Problem facing when Program AT89c5131 microcontroller.
Problem: Citrix printer mapping delay
Problem: BIOS