Output Unicode to console Using C++, in Windows

What about std::wcout ? #include <iostream> int main() { std::wcout << L”Hello World!” << std::endl; return 0; } This is the standard wide-characters output stream. Still, as Adrian pointed out, this doesn’t address the fact cmd, by default, doesn’t handle Unicode outputs. This can be addressed by manually configuring the console, like described in Adrian’s … Read more

What directories do the different Application SpecialFolders point to in WindowsXP and Windows Vista

There’s no single answer to that. In fact, that’s precisely why these “SpecialFolder”s are defined. You use those instead of a hardcoded path. Environment.SpecialFolder.ApplicationData is the most common one. This folder holds per-user, non-temporary application-specific data, other than user documents. A common example would be a settings or configuration file. Environment.SpecialFolder.CommonApplicationData is similar, but shared … Read more

How can I interrupt MATLAB when it gets really really busy?

Go to the command window, and hit Ctrl-C a lot. From my experience, on a single-core machine you do not have a chance, unless you do lots of output. On a multi-core or multi-processor machine, you’ll probably stop it eventually, but it takes time. See also http://www.mathworks.com/support/solutions/en/data/1-188VX/index.html Added: it is a good practice to (1) … Read more

Where does WAMP server store database files

On my system, they are in C:\Program Files (x86)\WampServer\bin\mysql\mysql5.1.53\data. So in yours they would be in E:\wamp\bin\mysql\mysql-version\data. You can start mysql locally from E:\wamp\bin\mysql\mysql-version\bin, where all the executables are. Be aware that the configuration file you want to use is E:\wamp\bin\mysql\mysql-version\my.ini. You can also simply copy all the subdirectories to another server. I’m no MySql … Read more

Is AppData now the ‘correct’ place to install user-specific apps (which modify their own data)?

Not really. The directory that serves as a common repository for application-specific data for the current roaming user. AppData is, surprisingly, for application data, not for installation (Click Once/Silverlight applications aside). You can, and should still install into Program Files, just don’t expect to write into that folder. You can install software into AppData if … Read more