|
Are sockets available as objects that you can drag into a form? If they must be created from code, what headers do I need to include (I suppose specifically for winsock). How do I use SSL for my sockets? Where would I include the headers? The main .cpp file?
I tried including winsock.h in stdafx.h but every build failed with it not being able to find such a file.
I tried including it in my main Project.cpp I don't get the missing file error, but I do get an error telling me: error C2065: 'SOCKET' : undeclared identifier.
Start Chunk of Solution Learner Project.cpp:
// Learner Project.cpp : main project file.
#include "winsock2.h" #include "stdafx.h" #include "Main.h"
Socket Declaration:
SOCKET OpenSocket;
|