replace C++ comments by C comments. replace the last printf() by WM_ERROR_NEW().