Hi,
I'm trying to get the sample code from MSDN for "Creating a Template in Memory" (Platform SDK->User Interface Services->Windowing->Dialog Boxes->Using Dialog Boxes) to work, but after calling the DisplayMyMessage with GetModuleHandle(NULL), my window's handle and a test message as parameters, nothing happened.
Using FormatMessage with GetLastError() gives "Invalid window handle.", which is rubbish, because I can see the window and all the other functions don't have a problem with it. What else could stop this from working?