Here:
Code:
wc.lpszClassName = "mycalss";
That is what the classname is, and here:

Code:
winhwnd = CreateWindow("myclass", "the title", WS_OVERLAPPEDWINDOW,
		0,0,34,34,NULL,NULL,hInstance,NULL);
the classnames are different. i changed them, and it worked