Need help with running seperate .cpp code under button in windows form(CLR)

Hello, i created a cpp file and now i need to run it when button1 is pressed. The cpp file has everything it needs to run(main, functions). Is it possible? I dont need anything else to be done in that windows form, i just need the button that runs and compiles the cpp file. I know there were similar threads but i seemingly have not found my exact solution.
I am not sure what the exact problem is. In the click event handler of the button you call the functions in your .cpp file. Of course you need to add the .cpp to your project.
Maybe you can show us the code.
Topic archived. No new replies allowed.