Email program: 'AF_INET' : undeclared identifier

Hello

I've found this e-mail program, but I get a weird error.

http://www.codeproject.com/KB/IP/smtp_ss...fr=1#xx0xx
(source code in top of page)

The error is:
error C2065: 'AF_INET' : undeclared identifier

It worked for a while, but now i can't get it to work anymore.
I tried to run the program on my laptop with success. No errors at all. I have the same settings on both computers, but my stationary keeps failing when trying to compile.

Does anyone why this is happening, and how it can be solved?
I've tried reinstalling VS 2010, but with no luck.
That link is broken. Could you fix it?

Aslo, see http://msdn.microsoft.com/en-us/library/windows/hardware/ff543744(v=vs.85).aspx
(header and requirements at the bottom of the page)
Topic archived. No new replies allowed.