I have 3 console projects using many standard libraries and STL. How to add source code files and header files to an empty windows forms project (CLR C ++) so that it would be possible by writing a parameter in TextBox and pressing a button, for example, calling the function cpp of the file with output to the console and is it even possible to do? (I already tried to run .exe in form, the teacher said that it is impossible)

    1 answer 1

    Create a new project on Managed C ++ so that the result is in the DLL. Put all the necessary C ++ code into it, achieve compilation. Add a Reference to your DLL with C ++ code to the main project. Make calls from your main project to a DLL with C ++ code.