Store hInstance in a global variable instead of getting it over and over again.
This is mostly just nit-pickery that allows most of the editor to be compiled with MinGW. The nasty COM-stuff for the XML-loader in syncdocument.cpp is still not compiling, though. There's also some missing resource definitions, it seems.
We dont need unicode everywhere. TCHARism is just noise.