To think and talk about programming and software

"Use Unicode Character Set" in CMake generated Visual Studio projects

Submitted by slavikt on Wed, 12/03/2008 - 22:31.

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.

|

Mastering CMake

Submitted by slavikt on Wed, 12/03/2008 - 01:01.

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 »

|

Better C++ enums

Submitted by slavikt on Tue, 04/15/2008 - 11:45.

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++: Stupid C++ Tricks #2: Better Enums external

|

Programming for web with C++

Submitted by slavikt on Tue, 02/19/2008 - 21:43.

I got a new portion of inspiration today. My RSS reader bring me this link: Wt: A Web Toolkit external. The article descibes great library external 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.

|

Human factor is the root of all evil

Submitted by slavikt on Mon, 12/24/2007 - 15:46.

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 »

|

Post comments faster

Submitted by slavikt on Sun, 12/23/2007 - 01:13.

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.

Rereading old papers

Submitted by slavikt on Wed, 11/21/2007 - 16:44.

The "automagically" word in some parts of the C++ FAQ Lite looks like sophisticated scoffing today.

Designing libiconvpp library

Submitted by slavikt on Sun, 11/18/2007 - 01:51.

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 »

|

Pure functional?

Submitted by slavikt on Fri, 11/16/2007 - 01:25.

Recently I decided to look at Haskell programming language. I have downloaded the best available compiler (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 »

|

The absolutelly necessary STLport configuration tweak

Submitted by slavikt on Mon, 11/12/2007 - 02:02.

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 »

|