   Disappearing Dialogs with Tab Controls
  I have an VC++ application which I run in a dialog screen window build in VC++'s resource editor. I have no trouble openning this execpt when I put in a tab-control (simply with the editor).Then, when I open the .exe, nothing happens. (it does execute, I need to close with the taskmanager, but the dialog screen isn't opened at all)I had this problem before, and somehow it works in other workspaces.But still, i dont know what it is..I'm really stuck on itcan anyone please offer some suggestions thanx in advance[Edited by - Kincaid on June 2, 2006 4:14:28 PM]
  According to the debugger;HWND Dialog = CreateDialog (Instance,(LPCTSTR) ID_WINDOW, NULL, (DLGPROC) Proc);ShowWindow ( Dialog ,SW_SHOW );Dialog is loaded properly when no tabcontrol is in de ID_WINDOW resourceBUT when there is a tab control (or slider (!)), CreateDialog returns NULL....Why????(I become rather desperate sometimes from debugging stuff like this :)   ;  If the call to CreateDialog failed, you can get the error information with a call to GetLastErrorFrom there you should be able to spot the problem. If you still need help after that post the result of GetLastError   ;  error 1407 cannot find window classI am googling on it right now, but if you can point in a direction, that would be great :)Many thanx though, error handling is very handy   ;  Try calling InitCommonControls() or InitCommonControlsEx() before you load the tab control   ;  fixed :) !!finallyand now I remember how i fixed the other workspacesDont have to call anything, just add comctl32.lib to project(i feel stupid now..)thanx though   