Converting exe to DLL
I have a windows executable that I'm trying to convert to a DLL.
Right now it uses cout and cin to get the user input. There are a bunch of functions in the executable. I'm new to programming and never written a DLL. From what I've figured out, I need to adjust the following:
ofstream scrn. cout, cin,scrn.open("stdout",ios: :out), scrn<< , scrn.close(), and exit(1).
Does this sound correct? Additionally, if anyone knows of a good beginner's tutorials on creating DLLs, it would be greatly appreciated.
input and output code should probably be inside the exe, you would have an external DLL for handling your internal algorithms. Google is a good place to find tutorials on building DLLs, though I'm sure this site has some too. You should post something like this in the windows forum.
Thanks for your help. I will use your advice regarding input and out and check out the