
ShellExecute fails when using SHGetSpecialFolderLocation?
Hi!,
I am making an program that needs to open an url in the default browser..
I use ShellExecute for this,
ShellExecute(NULL,"open", http://www.*-*-*.com/ ,"", "C:\\",W_SHOWNORMAL);
It works fine,
but when i use
if(SHGetSpecialFolderLocation(NULL, CSIDL_STARTMENU, &lpID) == NOERROR) {
if(SHGetPathFromIDList (lpID, folder) == TRUE) { /* blah*/}
}
this before it the shellexec doesn't work anymore it doesn't display
anything.,
does anyone have any idea how this come and how i can solve
the problem?
Regards,
Emile