I downloaded and installed the prebuilt Qt 4.7.4 binaries on Windows XP.
Then I compiled (using Visual Studio 2010) and ran (using the Visual Studio 2010 debugger) a program with the line
QTextCodec* codec = QTextCodec::codecForName("EUC-JP");
The returned pointer is null. What might the error be?
I figured out the answer. When I ran the app, it loaded the Qt binaries in C:/Program Files/TortoiseHg instead of the binaries in C:/Qt/4.7.4/bin. After I removed C:/Program Files/TortoiseHg from the system PATH variable, everything worked.