Show
Ignore:
Timestamp:
07/04/03 23:51:07 (5 years ago)
Author:
augur
Message:

Changed SwishCtl::Init(IndexFiles?) so the IndexFiles? parameter works as documented.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swishctl/src/CSwishCtl.cpp

    r1286 r1287  
    116116 
    117117{ 
    118  
    119118        // In order to claim "safe for scripting",  
    120  
    121119        // don't allow location of resources to be specified  
    122  
    123120        // as a parameter - for this application, the dll must 
    124  
    125121        // and the index files must reside in the same folder 
    126  
    127  
    128  
    129122        // So now the IndexFiles parameter is the name of a  
    130  
    131123        // registry value in the options key for this app 
    132  
    133  
    134  
    135         //BstrConverter bstr_indexfiles(IndexFiles); 
    136  
    137  
     124    CAnsiStr bstr_indexfiles(IndexFiles); 
    138125 
    139126        const char registrykey[] = "Software\\SWISH-E Team\\SwishCtl\\Options"; 
    140127 
    141128 
    142  
    143         CAnsiStr bstr_indexfiles(IndexFiles); 
    144  
    145  
    146  
    147129        RegKey hkcu(HKEY_LOCAL_MACHINE) ; 
    148130 
    149131 
    150  
    151  
    152  
    153132        string indexfilepath;  
    154133 
     
    163142                indexfilepath = hkcu.QueryValue( "IndexLocation"  ); 
    164143 
    165                 indexfilename = hkcu.QueryValue( "IndexFiles" ); 
     144                indexfilename = hkcu.QueryValue( bstr_indexfiles.c_str() ); 
    166145 
    167146        }