I'm using libwebsockets and lwsws to run an HTTP server and a Web Socket server, but it requires to write the web socket protocol code in a specific .dll plugin (HTTP provided by lib). Everything is developped with VS2015 (or VS2008).
The code to initialize and run this server is wrapped in a C++ object that I use in my executable project and this leads me to this problem:
I want to be able to call functions, and use variables, from the executable project API in my .dll plugin without ending-up with the code being compiled and put in that .dll; how can I do that?