Im using msvc++ 6.0 maybe somthing wrong with my library directories or somthing i Guess if anyone can help at all appreciate
thankx
here are my errors:Code://///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// ////////////////// // // // Title: Brads first window from scratch // Author: Brad Hoffer // Notes: Good luck to myself! // // ////////////////// /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #define WIN32_LEAN_AND_MEAN #include <windows.h> long CALLBACK WndProc( HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam ) { PAINTSTRUCT PaintStruct; HDC hDC; switch (uMessage) { case WM_CREATE: { return 0; } case WM_PAINT: { hDC = BeginPaint(hWnd, &PaintStruct); EndPaint (hWnd, &PaintStruct); return 0; } case WM_DESTROY: { PostQuitMessage(0); return 0; } default: { return DefWindowProc(hWnd, uMessage, wParam, lParam); } } } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pstrCmdLine, int iCmdShow) { HWND hWnd; MSG msg; WNDCLASSEX wc; static char strAppName[] = "Brads first win app"; wc.cbSize = sizeof(WNDCLASSEX); wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.lpfnWndProc = WndProc; wc.hInstance = hInstance; wc.hbrBackground = (HBRUSH)GetStockObject(DKGRAY_BRUSH); wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hIconSm = LoadIcon(NULL, IDI_HAND); wc.hCursor = LoadCursor(NULL, IDC_CROSS); wc.lpszMenuName = NULL; wc.lpszClassName = strAppName; RegisterClassEx(&wc); hWnd = CreateWindowEx( NULL, strAppName, strAppName, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 512,512, NULL, NULL, hInstance, NULL); ShowWindow(hWnd, iCmdShow); UpdateWindow(hWnd); while(GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; }
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/winwo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.



LinkBack URL
About LinkBacks


