wchar-t
how do I create a functioning vector<wchar_t> that has an erase(size_t pos) method?
I am creating a C++ wstring class for use with mingw version 4.3.0, cross-compiling for Win32. I want my string to work like std::string which means that I want an erase(int pos) method that erases a[详细]
2023-03-17 11:06 分类:问答Solution for missing std::wstring support in Android NDK?
I have a game which uses std::wstring as its basic string type in thousand of places as well as doing operations with wchar_t and its functions: wcsicmp() wcslen() vsprintf(), etc.[详细]
2023-03-13 21:02 分类:问答Unfathomable problem with unicode and frameworks
I\'m experien开发者_开发问答cing a very strange problem... The following trivial test code works as it should if it is injected in a single Cocoa application, but when I use it in one of my frameworks[详细]
2023-03-13 01:28 分类:问答Convert wchar_t to string?
I have a wchar_t I\'d like to convert to a string. The string should then be read using stringstream. I have looked converting it over here: http://msdn.microsoft.com/en-us/library/ms235631(v=vs.80).a[详细]
2023-03-08 12:59 分类:问答Convert wchar_t to int
how can I convert a wchar_t (\'9\') to a digit in the form of an int (9)? I have the following code where I check whether or not peek is a digit:[详细]
2023-03-07 00:47 分类:问答to upper with char16_t array
Is there any way to do it nicely. When I try to use Boost\'s to_upper(), I get a std::bad_cast, so I ended with something like this:[详细]
2023-03-06 20:30 分类:问答How can convert System::Int32 to wchar_t*
I have this piece of code: int casted_dbValue=3; wchar_t* nativeData=(wchar_t*)casted_dbValue; it is incorrect conversion between int to const wchar_t*. How can de开发者_运维百科al with this error?[详细]
2023-03-06 16:44 分类:问答using _wtol to convert with decimals
The function _wtol converts from a wide character string to a long. The problem is that it doesn\'t convert with decimals. I don\'开发者_如何转开发t know enough c++ to come up with a workaround, so ca[详细]
2023-03-03 09:57 分类:问答Reading Byte Data through the serial port in C++/CLI
I am trying to make an interface with another program so I have to use C++. It\'s been years since I have programmed in C++ and I have been at this problem for about a week so I\'m slowly starting to[详细]
2023-02-26 05:42 分类:问答Problem with Unicode in C++ exe (MSVC++2010)
I have a strange problem which I don\'t know where it came from. I might have changed some settings in the MSVC++2010 project but it all looks good to me.[详细]
2023-02-21 18:23 分类:问答