Changeset 1287 for trunk/swishctl/src/CSwishCtl.cpp
- Timestamp:
- 07/04/03 23:51:07 (5 years ago)
- Files:
-
- trunk/swishctl/src/CSwishCtl.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swishctl/src/CSwishCtl.cpp
r1286 r1287 116 116 117 117 { 118 119 118 // In order to claim "safe for scripting", 120 121 119 // don't allow location of resources to be specified 122 123 120 // as a parameter - for this application, the dll must 124 125 121 // and the index files must reside in the same folder 126 127 128 129 122 // So now the IndexFiles parameter is the name of a 130 131 123 // registry value in the options key for this app 132 133 134 135 //BstrConverter bstr_indexfiles(IndexFiles); 136 137 124 CAnsiStr bstr_indexfiles(IndexFiles); 138 125 139 126 const char registrykey[] = "Software\\SWISH-E Team\\SwishCtl\\Options"; 140 127 141 128 142 143 CAnsiStr bstr_indexfiles(IndexFiles);144 145 146 147 129 RegKey hkcu(HKEY_LOCAL_MACHINE) ; 148 130 149 131 150 151 152 153 132 string indexfilepath; 154 133 … … 163 142 indexfilepath = hkcu.QueryValue( "IndexLocation" ); 164 143 165 indexfilename = hkcu.QueryValue( "IndexFiles");144 indexfilename = hkcu.QueryValue( bstr_indexfiles.c_str() ); 166 145 167 146 }
