Changeset 371 for trunk/src/cppbase/bs_logger.cpp
- Timestamp:
- Nov 7, 2008, 1:15:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cppbase/bs_logger.cpp
r341 r371 15 15 16 16 /* 17 * This file Copyright (C) 1999-200 6Ulrich Mller.17 * This file Copyright (C) 1999-2008 Ulrich Mller. 18 18 * This program is free software; you can redistribute it and/or modify 19 19 * it under the terms of the GNU General Public License as published by … … 48 48 // include's from helpers 49 49 #include "helpers\prfh.h" 50 #include "helpers\xprf.h" 50 51 #include "helpers\xstring.h" 51 52 … … 273 274 * Note: if the logger is currently empty, this will delete 274 275 * the given INI key. 276 * 277 *@@changed WarpIN V1.0.18 (2008-10-06) [pr]: added Store(PXINI...) 275 278 */ 276 279 … … 283 286 } 284 287 288 BOOL BSMemLoggerBase::Store(PXINI pXIni, // in: INI handle 289 const char *pszApp, // in: INI application 290 const char *pszKey) // in: INI key 291 const 292 { 293 return (xprfWriteProfileData(pXIni, pszApp, pszKey, _pabLogString, _cbLogString)); 294 } 295 285 296 /* 286 297 *@@ Load: … … 289 300 * 290 301 * Returns TRUE if data was found. 291 */ 292 293 BOOL BSMemLoggerBase::Load(HINI hini, // in: INI handle 302 * 303 *@@changed WarpIN V1.0.18 (2008-10-06) [pr]: added Load(PXINI...) 304 */ 305 306 BOOL BSMemLoggerBase::Load(HINI hini, // in: INI handle 294 307 const char *pszApp, // in: INI application 295 308 const char *pszKey) // in: INI key … … 301 314 (PSZ)pszKey, 302 315 &_cbLogString); 316 return (_pabLogString != 0); 317 } 318 319 BOOL BSMemLoggerBase::Load(PXINI pXIni, // in: INI handle 320 const char *pszApp, // in: INI application 321 const char *pszKey) // in: INI key 322 { 323 if (_pabLogString) 324 free(_pabLogString); 325 _pabLogString = xprfhQueryProfileData(pXIni, 326 (PSZ)pszApp, 327 (PSZ)pszKey, 328 &_cbLogString); 303 329 return (_pabLogString != 0); 304 330 }
Note:
See TracChangeset
for help on using the changeset viewer.