I am trying to use the ShellExecute command for launching a program and open a file through a c++ code. I have included windows.h. The code I am writing is as follows:
ShellExecute(GetDesktopWindow(), "open", "C:\\Program Files (x86)\\EMSO\\bin\\emso.exe","C:\\Program Files (x86)\\EMSO\\bin\\MultiCSTR_Reaction.mso", NULL, SW_SHOWNORMAL);
The code opens the executable file but is not able to open the .mso file. It generates dialog boxes saying- 'File 'C:\Program' not found', 'File 'Files' not found' and 'File '(x86)\EMSO\bin\MultiCSTR_Reaction.mso' not found.' I can open the file through the command line. But how to open through a c++ code.