Jump to content
  • Advertisement

Archived

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

johnc82

DBG file ?

This topic is 5426 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

hi.... My code:

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

HWND g_hwnd = NULL;
static char clsn[] = "W32test";

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

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
				   PSTR pstrCmdLine, int iCmdShow)
{
	WNDCLASSEX wcx;

	wcx.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
	wcx.cbSize = sizeof(WNDCLASSEX);
	wcx.lpfnWndProc = WndProc;
	wcx.lpszClassName = clsn;
	wcx.hInstance = hInstance;

	wcx.cbClsExtra = 0;
	wcx.cbWndExtra = 0;
	wcx.lpszMenuName = NULL;

	wcx.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
	wcx.hCursor = LoadCursor(NULL, IDC_ARROW);
	wcx.hIcon = LoadIcon(NULL, IDI_APPLICATION);
	wcx.hIconSm = LoadIcon(NULL, IDI_WINLOGO);

	if(!RegisterClassEx(&wcx))
	{
		return -1;
	}

	g_hwnd = CreateWindowEx(NULL,
							clsn,
							"Yahoo",
							WS_OVERLAPPEDWINDOW,
							0,
							0,
							CW_USEDEFAULT,
							CW_USEDEFAULT,
							GetDesktopWindow(),
							NULL,
							hInstance,
							NULL);

	if(!g_hwnd)
	{
		return -2;
	}

	ShowWindow(g_hwnd, iCmdShow);

	UpdateWindow(g_hwnd);

	MSG msg;

	while(GetMessage(&msg, NULL, 0 , 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}

	if(!UnregisterClass(clsn, hInstance))
	{
		return -3;
	}

	DestroyWindow(g_hwnd);

	return (int)msg.wParam;
}

LRESULT CALLBACK WndProc(HWND hwnd, UINT imsg, WPARAM wparam, 
						 LPARAM lparam)
{
	switch(imsg)
	{
		case WM_CREATE:
			{
				return 0;
			}
		case WM_PAINT:
			{
				ValidateRect(g_hwnd, NULL);
				return 0;
			}
		case WM_CLOSE:
			{
				PostQuitMessage(0);
				break;
			}
		case WM_DESTROY:
			{
				PostQuitMessage(0);
				break;
			}
		default:
			{
				return DefWindowProc(hwnd, imsg, wparam, lparam);
			}
	}

	return DefWindowProc(hwnd, imsg, wparam, lparam);
}

Result: no error and can run but...... the compiler output box say something: 'w32test.exe': Loaded 'C:\Sengloong\w32test\Debug\w32test.exe', Symbols loaded. 'w32test.exe': Loaded 'C:\WINNT\system32\NTDLL.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\USER32.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\KERNEL32.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\GDI32.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\MSCTF.DLL', No symbols loaded. 'w32test.exe': Loaded 'C:\WINNT\system32\ADVAPI32.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\rpcrt4.dll', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\OLEAUT32.DLL', Cannot find or open a required DBG file. 'w32test.exe': Loaded 'C:\WINNT\system32\OLE32.DLL', Cannot find or open a required DBG file. The program '[1664] w32test.exe: Native' has exited with code 0 (0x0). so.... what is this "Cannot find or open a required DBG file." and how can i get rid this problems... btw, i using microsoft visual c++.net Thanks [edited by - johnc82 on August 14, 2003 12:51:04 PM]

Share this post


Link to post
Share on other sites
Advertisement
I''m not certain on this, but I believe it''s looking for the C++ code that goes along with those DLL files (and not finding it). Some of them might not have that info, and others you may have decided not to install...

--------------------


You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming

You are unique. Just like everybody else.

"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

Share this post


Link to post
Share on other sites
I get errors similar to those all the time. It has no effect on your program. It''s just the debugger telling you that it can''t code-trace (or code-step, whatever the heck you call it...) into the system DLL files because the code for them is missing.

--------------------


You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming

You are unique. Just like everybody else.

"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor

Yanroy@usa.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!