> I have a basic win32-based solution in VS.NET that's giving me
> problems. In the solution, I have a single .cpp/.h pair that support a
> single main dialog which contains 2 basic edit controls, 2 spin
> controls, a button and various static controls/labels.
>
> The main dialog is shown via the following call:
>
>     DialogBox(hInst, (LPCTSTR)IDD_MAIN, NULL, (DLGPROC)WndProc_Main);
>
> Testing the return value, I get a -1 and formatting the
> GetLastError() value gives me:
>
>     Cannot find window class.

I suspect you have not initialized the common controls library.

-------------
Ehsan Akhgari

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

Physician, heal thyself: then you will also heal your patient. Let it be his
best cure to see with his eyes the man who heals himself.
-Thus Spoke Zarathustra, F. W. Nietzsche





Reply via email to