Witam mam problem z ShellExecute w QtCreator
Chcę aby po kliknięciu przycisku otworzyła się dana strona w przeglądarcę.
ShellExecute( NULL, "open", "C:\\Program Files (x86)\\BraveSoftware\\Brave-Browser\\Application\\brave.exe",
"https://forum.pasja-informatyki.pl/", NULL, SW_SHOWNORMAL );
Komenda ta działa mi normalnie w CodeBloksie gdzie to testowałem, ale po wrzuceniu w QT wyskakuje mi błąd
i niestety nie wiem co jest nie tak.
mainwindow.cpp:25:5: error: no matching function for call to 'ShellExecuteW'
shellapi.h:63:22: note: expanded from macro 'ShellExecute'
_mingw_unicode.h:12:32: note: expanded from macro '__MINGW_NAME_AW'
2:1: note: expanded from here
shellapi.h:76:24: note: candidate function not viable: no known conversion from 'const char [5]' to 'LPCWSTR' (aka 'const wchar_t *') for 2nd argument