I have an mfc application and it is a simple dialog box that takes in user input and stores that information as separate variables. I also have a separate console based application, and once the user presses "okay" on the dialog box, the console based application should pop up, with information on it that depends on the user's input from the dialog box (reads from the variables). I have been suggested to use createprocess() to launch the console based application, but when I try to use it and press "okay" the following error occurs:
Unhandled exception at 0x7518b77b in RLGCDialog.exe: 0xC0000005: Access violation writing location 0x01177bd6.
I have attached the code where I use the function.
My next question is once I fix this, how can I send the data from the GUI to the console based app? Would combining the projects be easier/how would I go about doing that? Thanks in advanced.