I program in visual studio in C++. I have one project that is a server, and the second project is a DLL that can be uploaded to the server, in order for me to send some special commands through the DLL, I need to pass it a function from the server. I tried exporting functions from server in this way
extern "C" __declspec(dllexport) void send_peer_command(Peer* peer, const std::string& lua_command);
But it doesn't work. So i need to export function from exe file to dll project on C++. I tried a bunch of ways but I didn't succeed, please tell me how to do it. I know this is not the best solution, but I urgently need to do it. I know that there are ways to do this, but there are few examples of this, just if you can give a simple example, that's all I need