Hello, Definition of Variable errorT is defined for UNICODE and errorE otherwise. Function FormatMessage is called with errorT unconditionally and build fail for non-unicode builds. Next failure is use of both errorT and errorW as argumens of conversion functions. Regards, Roumen