ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/Chooser.cxx
(Generate patch)

Comparing trunk/VTBFileUtil2/Chooser.cxx (file contents):
Revision 269 by douglas, 2003-08-19T01:19:24-07:00 vs.
Revision 290 by douglas, 2003-09-04T18:57:00-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: Chooser.cxx,v 1.7 2003/08/19 08:19:24 douglas Exp $
5 > // $Id: Chooser.cxx,v 1.10 2003/09/05 01:57:00 douglas Exp $
6  
7   #include "Chooser.h"
8  
# Line 33 | Line 33 | unsigned Chooser::count = 0;
33   map<unsigned, Chooser*> Chooser::choosers;
34   map<HWND, Chooser*> Chooser::windows;
35  
36 < INT_PTR CALLBACK Chooser::window(HWND dialog, UINT msg, WPARAM w, LPARAM l)
36 > INT_PTR Chooser::window(HWND dialog, UINT msg, WPARAM w, LPARAM l)
37   {
38          map<HWND, Chooser*>::iterator itor = windows.find(dialog);
39          Chooser* data = itor->second;
# Line 78 | Line 78 | INT_PTR CALLBACK Chooser::window(HWND di
78                          break;
79                  }
80                  break;
81        case WM_DESTROY:
82                windows.erase(dialog);
83                break;
81          }
82  
83          return FALSE;
# Line 119 | Line 116 | void Chooser::desktop(void)
116  
117          char* desktop = new char[MAX_PATH];
118  
119 <        SHGetFolderPath(NULL, CSIDL_DESKTOPDIRECTORY, NULL, SHGFP_TYPE_CURRENT,
120 <                desktop);
119 >        SHGetFolderPath(NULL, CSIDL_FLAG_CREATE | CSIDL_DESKTOPDIRECTORY, NULL,
120 >                SHGFP_TYPE_CURRENT, desktop);
121  
122          wstring path = toWide(string(desktop) + "\\" + name + ".lnk");
123  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines