I just can’t see what’s wrong with this code.. it seems to be the same as the MS tutorial code.. can somebody take a quick look at it for me?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are returning S_OK (#defined as
((HRESULT)0L)) from your InitWindow function. When checking the return value, you are checking if it is TRUE (non-zero):if (!InitWindow(...)). 0 will be interpreted as false, so it is failing this test.If I change the call to InitWindow to:
It works fine