• Advertisement

Archived

This topic is now archived and is closed to further replies.

what in the world is wrong with this ????

This topic is 5713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It resutrn me could not register class. i''m using windows xp professional with NO updates at all and on the debugger it says c:\windows\system32\kernell32.dll no matching symbolic informatino found and goes on with a list...
  #include <windows.h>

LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);


int WINAPI WinMain(HINSTANCE Instance,HINSTANCE PrevInstance,LPSTR CmdLine,int ShowCmd)
{
	WNDCLASS Wnd;
	MSG      Msg;
	HWND     Hwd;

	Wnd.cbClsExtra = 0;
	Wnd.cbWndExtra = 0;
	Wnd.hbrBackground = (HBRUSH)GetStockObject(1);
	Wnd.hCursor = LoadCursor(NULL,IDC_ARROW);
	Wnd.hInstance = Instance;
	Wnd.hIcon = LoadIcon(NULL,IDI_WINLOGO);
	Wnd.lpfnWndProc = WndProc;
	Wnd.lpszClassName = "REGISTER";
	Wnd.lpszMenuName = NULL;


	if (!RegisterClass(&Wnd))
	{
		MessageBox(NULL,"Could not register class","Error",MB_OK|MB_ICONEXCLAMATION);
		return 0;
	}

	Hwd = CreateWindowEx(
			WS_EX_CLIENTEDGE,
			"REGISTER",
			"Tae is GAY cuz he can only do this in VISUAL BASICS",
			WS_OVERLAPPEDWINDOW,
			0,0,500,500,NULL,NULL,Instance,NULL);

	if (Hwd == NULL)
	{
		MessageBox(NULL,"Creation failed","Error",MB_OK|MB_ICONEXCLAMATION);
		return 0;
	}


	ShowWindow(Hwd,ShowCmd);
	UpdateWindow(Hwd);

	while (GetMessage(&Msg,Hwd,0,0) > 0)
	{
		TranslateMessage(&Msg);
		DispatchMessage(&Msg);
	}
	
	return Msg.wParam ;
	
}

LRESULT CALLBACK WndProc(HWND Hwd,UINT Msg,WPARAM wParam,LPARAM lParam)
{
	switch(Msg)
	{
		case WM_CLOSE:
			DestroyWindow(Hwd);
		break;
		case WM_DESTROY:
			PostQuitMessage(0);
		break;
		default :
		    return DefWindowProc(Hwd,Msg,wParam,lParam);
		break;
	}

	return 0;
}   

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by ZealousElixir
Ignore the lack of symbolic info. Know your debugger before you interpret its output as a possible solution, and in the future, fill in the style field of your WNDCLASS''s.

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]



thx resource man

Share this post


Link to post
Share on other sites
Your debugger is telling you that the DLL it''s looking at is either a release build, or that there is simply not a DBG or PDB file that corrosponds to it containing symbolic debugging information. This isn''t anything to be concerned about with the DLLs that are a part of the operating system, such as the kernel, user, MFC, or COM libraries.

Hope that helps.

Peace,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

Share this post


Link to post
Share on other sites
A few more notes.

Apparently, you can get symbolic debug info for these DLLs. In VC, go to Project -> Settings -> Debug -> Additional DLLs and add them there, though this isn''t really necessary unless you just eagerly want to do it.

Also, I guess I shouldn''t''ve said "COM DLLs." I think the more appropriate term would be COM servers...but who cares?

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

Share this post


Link to post
Share on other sites

  • Advertisement