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
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.
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
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
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:
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:
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?
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
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
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.