WindowProv Error FTW WTF ???
hello guys,
recently i was trying to make something but i got error which i cant fix:
and the error is
i use VS ultimate 2010 and win 7 64 bit ... i checked the linkers but i dont know where the error is 
recently i was trying to make something but i got error which i cant fix:
Code:
#include <windows.h>
#include <windowsx.h>
#include <tchar.h>
LRESULT CALLBACK WindowProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
HWND hWnd;
CHAR szAppName[]="WindowClass1";
WNDCLASSEX wc;
ZeroMemory(&wc, sizeof(WNDCLASSEX));
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WindowProc;
wc.hInstance = hInstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
wc.lpszClassName = szAppName;
RegisterClassEx(&wc);
return 0;
}
Code:
Error 2 error LNK2001: unresolved external symbol "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z) C:\Users\Kaloian\documents\visual studio 2010\Projects\DirectX\DirectX\d3d.obj Error 3 error LNK1120: 1 unresolved externals C:\Users\Kaloian\documents\visual studio 2010\Projects\DirectX\Release\DirectX.exe


