http://bugs.winehq.org/show_bug.cgi?id=10961
--- Comment #10 from Kirill K. Smirnov lich@math.spbu.ru 2008-01-01 16:17:52 --- It is not an hInstance problem.
[code] CreateWindowEx( dwExStyle, pszClass, szWindowName, dwStyle ? dwStyle : DEFAULT_WIN_STYLE, xPos == WBC_CENTER ? xPos : (xPos < 0 ? CW_USEDEFAULT : xPos), yPos == WBC_CENTER ? yPos : (yPos < 0 ? CW_USEDEFAULT : yPos), nWidth <= 0 ? CW_USEDEFAULT : nWidth, nHeight <= 0 ? CW_USEDEFAULT : nHeight, pwboParent ? pwboParent->hwnd : NULL, NULL, hAppInstance, NULL); [/code]
Here, as I saw in the trace log, zero is passed as pszClass, and this is invalid. There is definitely problem with registering window class.