the error during compile
Error 2 error C2143: syntax error : missing ')' before ';' d:\document\visual studio 2008\projects\binarysearch\binarysearch\wordsearch.c 122
Error 3 error C2198: 'CreateWindowExW' : too few arguments for call d:\document\visual studio 2008\projects\binarysearch\binarysearch\wordsearch.c 122
Error 4 error C2143: syntax error : missing ';' before ',' d:\document\visual studio 2008\projects\binarysearch\binarysearch\wordsearch.c 122
Your code doesn't show how the HINSTANCE variable is being assigned a valid value. I don't think that's the cause of the compiler error though. It looks like your CreateWindow() call is being macroed into CreateWindowExW(), which takes an extra parameter. Try putting a zero there...