ShellExecute fails when using SHGetSpecialFolderLocation? 
Author Message
 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



Fri, 04 Mar 2005 06:39:58 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. SHGetSpecialFolderLocation using CSIDL_APPDATA

2. ShellExecute fails - why?

3. PrintDlg when using ShellExecute

4. debugger detects memory leak after using shellexecute

5. Using ShellExecute in VC++

6. PrintDlg when using ShellExecute

7. Using shellexecute to invoke Direct:Connect (Sterling Software)

8. Need help using ShellExecute()

9. Memory Leaks when using Shellexecute

10. Printng Power Point documents using ShellExecute

11. Opening multiple files using ShellExecute

12. Using ShellExecute

 

 
Powered by phpBB® Forum Software