I got this error when tried to compile..
1>------ Build started: Project: experiment, Configuration: Debug Win32 ------
1>Compiling...
1>commands.cpp
1>..\..\..\..\commands.cpp(19) : warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(324) : see declaration of 'sscanf'
1>networking.cpp
1>..\..\..\..\networking.cpp(139) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'
1>..\..\..\..\networking.cpp(131) : warning C4101: 'iResult' : unreferenced local variable
1>..\..\..\..\networking.cpp(137) : warning C4101: 'tmp' : unreferenced local variable
1>..\..\..\..\networking.cpp(222) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'
1>..\..\..\..\networking.cpp(245) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'
1>..\..\..\..\networking.cpp(246) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdlib.h(862) : see declaration of 'itoa'
1>Generating Code...
1>c:\documents and settings\daniel\my documents\networking.cpp(66) : warning C4700: uninitialized local variable 'iresult' used
1>Linking...
1>main.obj : error LNK2028: unresolved token (0A000290) "extern "C" int __stdcall AdjustTokenPrivileges(void *,int,struct _TOKEN_PRIVILEGES *,unsigned long,struct _TOKEN_PRIVILEGES *,unsigned long *)" (?AdjustTokenPrivileges@@$$J224YGHPAXHPAU_TOKEN_PRIVILEGES@@K1PAK@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>main.obj : error LNK2028: unresolved token (0A0002CB) "extern "C" int __stdcall LookupPrivilegeValueA(char const *,char const *,struct _LUID *)" (?LookupPrivilegeValueA@@$$J212YGHPBD0PAU_LUID@@@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>main.obj : error LNK2028: unresolved token (0A000341) "extern "C" int __stdcall OpenProcessToken(void *,unsigned long,void * *)" (?OpenProcessToken@@$$J212YGHPAXKPAPAX@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall AdjustTokenPrivileges(void *,int,struct _TOKEN_PRIVILEGES *,unsigned long,struct _TOKEN_PRIVILEGES *,unsigned long *)" (?AdjustTokenPrivileges@@$$J224YGHPAXHPAU_TOKEN_PRIVILEGES@@K1PAK@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall LookupPrivilegeValueA(char const *,char const *,struct _LUID *)" (?LookupPrivilegeValueA@@$$J212YGHPBD0PAU_LUID@@@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall OpenProcessToken(void *,unsigned long,void * *)" (?OpenProcessToken@@$$J212YGHPAXKPAPAX@Z) referenced in function "void __cdecl EnableDebugPriv(void)" (?EnableDebugPriv@@$$FYAXXZ)
1>C:\Documents and Settings\Daniel\My Documents\Visual Studio 2008\Projects\experiment\Debug\experiment.exe : fatal error LNK1120: 6 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Daniel\My Documents\Visual Studio 2008\Projects\experiment\experiment\Debug\BuildLog.htm"
1>experiment - 7 error(s), 8 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========