   RPG games /w DX question
  Ok. I''m reading a book called programming role plyaing games with directX and I''m on chapter 10. So basicly, I''m trying out a small program with the game core presented. The code is basically just a frame application using only the cApplication core object. heres the code:// Includes#include "Core_Global.h"// Classesclass cApp : public cApplication{public:cApp();    // constructorBOOL Init(); // Overloaded Init functionBOOL Shutdown(); // Overloaded shutdown functionBOOL Frame(); // Overloaded frame function};cApp::cApp(){// Set up the window style, position, width, and heightm_Style = WS_OVERLAPPEDWINDOW; // window stylem_XPos  = 100; // x coord of the windowm_YPos  = 20;  // y coord of the windowm_Width = 640; // width of client aream_Height = 480; // height of client area// Assign a class name and window captionstrcpy(m_Class, "Game");strcpy(m_Caption, "Game");}BOOL cApp::Init(){// stuffreturn TRUE;}BOOL cApp::Shutdown(){// stuffreturn TRUE;}BOOL cApp::Frame(){// stuffreturn TRUE;}int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow){cApp App;return App.Run();}i unfortunately keep getting the following linking errors:--------------------Configuration: Snake - Win32 Debug--------------------Linking...Core_Graphics.obj : error LNK2001: unresolved external symbol _DirectXFileCreate@4Core_Network.obj : error LNK2001: unresolved external symbol _inet_ntoa@4Core_Network.obj : error LNK2001: unresolved external symbol _WSACleanup@0Core_Network.obj : error LNK2001: unresolved external symbol _gethostbyname@4Core_Network.obj : error LNK2001: unresolved external symbol _gethostname@8Core_Network.obj : error LNK2001: unresolved external symbol _WSAStartup@8Debug/Sample.exe : fatal error LNK1120: 6 unresolved externalsError executing link.exe.Sample.exe - 7 error(s), 0 warning(s)the libraries added are:d3d8.lib d3dx8.lib dinput8.lib dxguid.lib dsound.lib dplayx.lib winmm.libthe book says to also add dpnaddr.lib and dpnet.lib but they give errors saying that the files cannot be found so i removed them. I already downloaded the update files at Jim Adams'' website and installed it.Can anyone tell me what i''m doing wrong? Hope the format of the code in this post is readable.   
  Add d3dxof.lib and wsock32.libThose missing files (dpnaddr.lib and dpnet.lib) were removed from DX 8.1, so you don't have to worry about them. Jim Adamshome.att.net/~rpgbookAuthor, Programming Role-Playing Games with DirectX[edited by - Jim Adams on August 20, 2002 7:38:37 PM];  It works! Wow, thx! especially for replying so promptly.newayz, great book so far.  