Monthly Archives: March 2008

Random Tips

1. How to disable particular warning in VC++ 6.0 (for example, warning C4800)?

Add the following pragma in StdAfx.h file

#pragma warning (disable : 4800)


2. If you get the following error while using socket in VC++ 6.0.error LNK2001: unresolved external symbol __imp__WSAStartup@8

then

type “WS2_32.lib” in Object/library modules textbox in Project > Settings > Link (tab) > Input (category).

You also need to include header file Winsock2.h in the project.