#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
void main()
{
string run;
cin >> run;
ShellExecute(NULL, NULL, run /*<<<the error*/, NULL, NULL, SW_SHOWNORMAL);
}
I want it so if i enter a file path, it open.
If i replace run with "E:/test.exe", it works... but i want it so i can enter any file path...