There will be an unordered_map in c++ dll containing some 'vectors' mapped to its 'names'. For each of these 'names', the python code will keep on collecting data from a web server every 5 seconds and fill the vectors with it.
Is such a dll possible? If so, how to do it?
You can make the Python code into an executable. Run the executable file from the DLL as a separate process and communicate with it via TCP localhost socket - or some other Windows utility that allows to share data between different processes.
That's a slow mess. I agree, but it works.
You can also embed Python interpreter and run the script it on the dll... I suppose.
Is it possible to have a c++ dll run a python program in background and have it populate a map of vectors? If so, how?