Error Lnk2019 Mainwndproc
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up DirectX unresolved external error up vote 1 down vote favorite So I'm trying to get into some directX programming so I'm following this book called "Beginning DirectX 11 Game Programming", but I'm stuck already at the second example. I've spend roughly an hour searching for a solution to this problem, but havn't been able to find anything that could help me. So the error code I'm getting is this.: Main.obj : error LNK2019: unresolved external symbol "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) referenced in function _wWinMain@16 And here's the code - written exactly as in the book, except for LRESULT CALLBACK WndProc #include
CheckersGame.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "CheckersGame.h" LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { WNDCLASSEX windowdesc; TCHAR Name[] = _T("CheckersGame"); windowdesc.cbSize = sizeof(WNDCLASSEX); windowdesc.lpszClassName = Name; windowdesc.style = CS_HREDRAW | http://stackoverflow.com/questions/11659157/directx-unresolved-external-error CS_VREDRAW; windowdesc.lpfnWndProc = WndProc; windowdesc.cbClsExtra = 0; windowdesc.cbWndExtra = 0; windowdesc.hInstance = hInstance; windowdesc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APPLICATION)); windowdesc.hCursor = LoadCursor(NULL, IDC_ARROW); windowdesc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); windowdesc.lpszMenuName = NULL; windowdesc.hIconSm = LoadIcon(windowdesc.hInstance, MAKEINTRESOURCE(IDI_APPLICATION)); HWND WindObj = http://www.cplusplus.com/forum/windows/53567/ CreateWindow(Name, Name, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 500, 100, NULL, NULL, hInstance, NULL); return 0; } /*Errors: error LNK2019: unresolved external symbol "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) referenced in function _wWinMain@16 1>C:\Users\alex\documents\visual studio 2010\Projects\CheckersGame\Debug\CheckersGame.exe : fatal error LNK1120: 1 unresolved externals.*/ // What am i doing wrong here? Oct 28, 2011 at 6:29am UTC webJose (2948) The linker is not finding your WndProc() function. Where do you have it? Oct 29, 2011 at 12:23am UTC scrat101 (13) I declared it... But do I need to specify its implementation???? Last edited on Oct 29, 2011 at 12:25am UTC Oct 29, 20
topic ForumsMembersHelp Files Developer Journals Gallery Calendar Downloads Resources Store Classifieds Tracker Links Home For Beginners Articles All Articles Post an Article http://www.gamedev.net/topic/442927-unresolved-external-symbol-error/ Technical Game Programming General Programming Graphics Programming and Theory DirectX and XNA http://www.prepar3d.com/forum/viewtopic.php?t=120054 OpenGL and Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile Development Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Music and Sound Visual Arts Business Breaking into the Industry Production and Management Interviews Business and Law Event Coverage Forums All Forums Technical Game error lnk2019 Programming General Programming Graphics Programming and Theory DirectX and XNA OpenGL & Vulkan Multiplayer and Network Programming Artificial Intelligence Math and Physics Mobile & Console Development Build Systems & Source Control Middleware, Libraries, and Tools Virtual and Augmented Reality Creative Game Design Writing For Games Music and Sound Visual Arts Gallery Business Breaking into the Industry Business & Law Production & Management error lnk2019 mainwndproc Community GDNet Lounge Coding Horrors Article Writing Comments, Suggestions and Ideas Your Announcements Hobby Project Classifieds Indie Project Showcase Community Developer Journals GDNet+ Subscriptions Gallery Store Classifieds Jobs Freelancers Hobby Projects Marketplace Newsletter » Home » Forums » The Technical Side » DirectX and XNA Chat Watched Content New Content 0 Unresolved External Symbol Error Started by Maytridy, Apr 09 2007 07:43 AM Old topic! Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic. You cannot reply to this topic 5 replies to this topic #1 Maytridy Members -Reputation: 100 Like 0Likes Like Posted 09 April 2007 - 07:43 AM I've searched these forums as much as I can, but I haven't found a working solution. I'm using Visual C++ 2005 Express Ed. and I'm trying to run the example code from Frank Luna's Introduction to 3D Game Programming with DirectX 9.0c: A Shader Approach. However, I get the following errors: ------ Build started: Project:
Refund Policy Acceptable Use Policy Add-On Installation Exporting Contact Us Downloads Quick links Unanswered topics Active topics Search The team FAQ Login Register Prepar3D Board index Prepar3D Development Software Development Kit (SDK) Questions Search error LNK2019: unresolved external symbol Post Reply Print view Search Advanced search 4 posts • Page 1 of 1 Poloche Posts: 4 Joined: Mon Mar 10, 2014 6:18 pm error LNK2019: unresolved external symbol Quote Postby Poloche » Mon Jul 11, 2016 5:36 pm Hello,I created an empty Visual Studio 2013 project using SimConnect v3 library. I strictly followed the steps in order to link this library with my project:1) I first included SimConnect.h in my header files, directly in the project.2) I linked the inc folder in Additional Include Directories.3) I linked the lib folder in Additional Libraries Directories.4) I finally added SimConnect.lib in Additional Dependencies.I then took the RequestData example from the SimConnect SDK folders and tried to run it.Here are the LNK2019 errors that I get:1>------ Build started: Project: SimConnect3Client, Configuration: Debug x64 ------1>Main.obj : error LNK2019: unresolved external symbol SimConnect_CallDispatch referenced in function "void __cdecl testDataRequest(void)" (?testDataRequest@@YAXXZ)1>Main.obj : error LNK2019: unresolved external symbol SimConnect_Open referenced in function "void __cdecl testDataRequest(void)" (?testDataRequest@@YAXXZ)1>Main.obj : error LNK2019: unresolved external symbol SimConnect_Close referenced in function "void __cdecl testDataRequest(void)" (?testDataRequest@@YAXXZ)1>Main.obj : error LNK2019: unresolved external symbol SimConnect_AddToDataDefinition referenced in function "void __cdecl testDataRequest(void)" (?testDataRequest@@YAXXZ)1>Main.obj : error LNK2019: unresolved external symbol SimConnect_RequestDataOnSimObjectType referenced in function "void __cdecl MyDispatchProcRD(struct SIMCONNECT_RECV *,unsigned long,void *)" (?MyDispatchProcRD@@YAXPEAUSIMCONNECT_RECV@@KPEAX@Z)1>Main.obj : error LNK2019: unresolved external symbol SimConnect_SubscribeToSystemEvent referenced in function "void __cdecl testDataRequest(void)" (?testDataRequest@@YAXXZ)1>C:\Users\sboulnois\documents\visual studio 2013\Projects\SimConnect3Client\x64\Debug\SimConnect3Client.exe : fatal error LNK1120: 6 unresolved externals========== Build: 0 succeeded, 1