This is exactly what I did, but VS fails with the following message:
1>------ Build started: Project: demo_kdb1, Configuration: Debug Win32 ------
1>Build started 1/24/2013 4:29:04 PM.
1>InitializeBuildStatus:
1> Touching "Debug\demo_kdb1.unsuccessfulbuild".
1>ClCompile:
1> connect.cpp
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>c.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function _cls
1>c.obj : error LNK2019: unresolved external symbol __imp__ioctlsocket@12 referenced in function _snb
1>c.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wsa
1>c.obj : error LNK2019: unresolved external symbol __imp__gethostbyaddr@12 referenced in function _hl
1>c.obj : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function _hl
1>c.obj : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function _addr
1>c.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function _addr
1>c.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function _addr
1>c.obj : error LNK2019: unresolved external symbol __imp__accept@12 referenced in function _accp
1>c.obj : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function _cb
1>c.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function _cb
1>c.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function _cb
1>c.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function _cb
1>c.obj : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function _sopt
1>c.obj : error LNK2019: unresolved external symbol __imp__listen@8 referenced in function _lstn
1>c.obj : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function _pod
1>c.obj : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function _pod
1>c.obj : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function _apu
1>c.obj : error LNK2019: unresolved external symbol __imp__select@20 referenced in function _apu
1>c.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function _rcv
1>c.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function _snd
I included this file by right click project name, -> properties -> VC++ Directories -> modify the Library Directories
Then -> Linker -> input -> additional dependences -> add c.obj
Is this what I am supposed to do?