I am working on a simple C++.Net project which will allow me to run another program (e.g., I. Ex., Word etc.).
However, I can't seem to find any working codes online.
Here are the codes I have found so far;
ShellExecute(GetDesktopWindow(), "open", "c:\myTestFolder\myfile.exe", NULL, NULL, SW_SHOWNORMAL);
requires the inclusion of the header Windows.h
The error that I get says "Argument of type Const Char is not compatible with parameter type LPCWSTR ????
This is the code that I thought would accomplish this at first but also did not work. Error says "Not recognized as an internal or external command..."
Is it that complicated to run another app using C++?
I just migrated from Visual basic and it was so easy to accomplish this task with it.