writing a dll with already defined variables\functions

Hello

I am working with simulation software written in C++ and I need some help.

I created a DLL file and linked it to my original code.
now I need to write a functions inside this DLL, but the variables and these functions are already identified in the original code.
my question is if it's possible to write in the DLL file what is already defined in the code, and how!

I'm not an expert and I hope I made my point clear :/

Thank you
This sounds like a 'stop coding' moment. Put it down, go get a sheet of paper, and write down what belongs in the dll, and what does not. You may need to modify some things a little bit (parameters, most likely) but you should be able to reorganize the code properly if you sit down and focus on the design for a few min. Your function bodies are probably mostly still good, so this won't be a massive re-do, but if you keep coding at it without a plan you are going to make an even bigger mess. When you look at it, remember to think about the code you have not completed yet, and where that will go, as well as the current problem.


Topic archived. No new replies allowed.