I'm quite new to windows-programming and trying to figure out, how to create a window from a dialog-based application with visual c++ 4.0.
Creating the Dialog-window and subsequent dialog-windows is no problem, but after clicking a button, I want some kind of depend window (for some graphics output) to be displayed . I tried with CreateWindow(...) as well as with CreateWindowEx(...), but no handle is returned, only a NULL-pointer. And the help-files suggest to get information on the possible error by calling GetLastError(). Nice thing, but it returns nothing. No, it returns a value, but that one isn't either not a member in the error code list, or it is, but means something like "File not found".
And the most interresting thing is that if you set the error to 0 before calling CreateWindow by SetLastError(0), after CreateWindow GetLastError()still returns 0. But no handle is there.
Has anyone an idea how to solve this problem, I'm shure it's just a simple one, but sometimes the simple ones are the worst.
Thanks for any help