I'm trying to work with boost
My includes look like this:
#include <boost/asio.hpp>
#include <Windows.h>
I'm trying to test out this call:
ShellExecute(NULL, "open", "C:/local/test.txt", NULL, NULL, SW_SHOWNORMAL);
When I compile I get "ShellExecute is undefined". If I move the Windows.h
include above the boost include, it's picked up by the compiler but I get tons of Winsock errors instead. I'm using VS 2015.
This only happens with the network libraries - I've been using boost filesystem prior to this with no problems.
This happens with all functions that are provided by Windows.h
Any thoughts would be appreciated!