It's strange, but default generated projects are configured to use Multibyte instead of Unicode option.
Hopefully, it's very easy to fix. Just add this line in your top CMakeLists.txt file.
add_definitions(-DUNICODE -D_UNICODE)
Not a problem at all anymore.
PS. As it turned out, there is discussion about it in the CMake mailing list on the last month. Stupid me had to reinvent the wheels.
Ok, I was silent here for a long time. Lot's of things have changed, huge pile of new things learned. Let's continue.
During last few weeks I'm learning the CMake. Bought the "Mastering CMake" book (which is not as good as I have expected), read it, experimented a little.
Now I have two things to share about this system which are not covered by official docs and I haven't found them with google (at least in the clear Q&A form). read more »
I was going to write about it myself for a long time, but Noel did it first.
Must-have technique when using enums in C++: [?external:http://powerof2games.com/node/30 Stupid C++ Tricks #2: Better Enums]
I got a new portion of inspiration today. My RSS reader bring me this link: [?external:http://www.ddj.com/cpp/206401952 Wt: A Web Toolkit]. The article descibes [?external:http://www.webtoolkit.eu/wt/ great library] for developing web applications with C++ and happiness.
I don't know, how it will be in the practice, but I'm going to give it a try. It looks very promising.
Theoretically, you can write ideal program, without any bugs and with excellent usability. The practice guarantee that someone from the human race will break it someday.
The greatest test plan is very handy for the testers to eliminate errors during testing run of the program. But you can be sure that tester will make a mistake eventually and will leave the bug in the production code. read more »
We have changed our whole hosting provider, and the site is now running much better.
Next, I have removed comments premoderation in this blog. From this time all comments from all users will appear immediately.
Commenting becomes much faster.
The "automagically" word in some parts of the [?:http://parashift.com/c++-faq-lite/ C++ FAQ Lite] looks like sophisticated scoffing today.
I have continued my old postponed work for creating the good C++ interface for the libiconv. I want the library to be working without manually allocating buffers and controlling the conversation flow. I'd prefer simple interface like "do all needed for converting this into that". read more »
Recently I decided to look at Haskell programming language. I have downloaded the best available compiler ([?:http://haskell.org/ghc/ GHC 6.8.1]), retrieved tutorial and started to dig in.
Everyone Haskell-related has promised me the pure functional language. This means lazy evaluations and no side effects. The basic syntax is quite easy, so I have started to do exercises. read more »
There are lots of configuration options in the STLport, and their default values are ok in the most cases. With only one exception: the debug mode, configured with the _STLP_DEBUG macro definition. read more »