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

Comparing trunk/VTBFileUtil2/ScanUtility.cxx (file contents):
Revision 291 by douglas, 2003-09-05T01:57:00-07:00 vs.
Revision 292 by douglas, 2003-09-08T18:43:28-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: ScanUtility.cxx,v 1.16 2003/09/05 08:57:00 douglas Exp $
5 > // $Id: ScanUtility.cxx,v 1.17 2003/09/09 01:43:28 douglas Exp $
6  
7   #include "ScanUtility.h"
8  
# Line 254 | Line 254 | void ScanUtility::saveDirs(void)
254  
255   void ScanUtility::setScanDir(HWND parent)
256   {
257 +        char buffer[MAX_PATH];
258 +
259 +        SHGetFolderPath(parent, CSIDL_FLAG_CREATE | CSIDL_DESKTOPDIRECTORY, NULL,
260 +                0, buffer);
261 +
262          BROWSEINFO info;
263  
264          info.hwndOwner = parent;
# Line 308 | Line 313 | void ScanUtility::setScanDir(HWND parent
313  
314   void ScanUtility::setSaveDir(HWND parent)
315   {
316 +        char buffer[MAX_PATH];
317 +
318 +        SHGetFolderPath(parent, CSIDL_FLAG_CREATE | CSIDL_DESKTOPDIRECTORY, NULL,
319 +                0, buffer);
320 +
321          BROWSEINFO info;
322  
323          info.hwndOwner = parent;
# Line 875 | Line 885 | INT_PTR ScanUtility::enter(HWND dialog,
885                                                  << "}\n";
886                                  }
887  
888 <                                data->save = data->saveDir + '\\' + data->client.getFile();
888 >                                data->save = data->saveDir + data->client.getFile();
889  
890                                  if (debug) cerr << "save = " << data->save << "\n";
891                                  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines