Thats one of the troubles with Win32 API, you have to keep testing, keep compiling.
If you feel this is tiring, try using another library like wxWidgets.