HINSTANCE hInst = ShellExecute(0,
"open",
"iexplore.e xe",
Open,
0,
SW_SHOWNORMAL);
After reading multiple articles, the above syntax should be the proper way to execute a shell, shouldn't it? But how come in the final line, ("SW_SHOWNORMAL "), it gives me this error:
error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
"open",
"iexplore.e xe",
Open,
0,
SW_SHOWNORMAL);
After reading multiple articles, the above syntax should be the proper way to execute a shell, shouldn't it? But how come in the final line, ("SW_SHOWNORMAL "), it gives me this error:
error C2664: 'ShellExecuteW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
Comment