#define NLITE_READ_INI_INT(cs,mm,path) cs.mm = GetPrivateProfileInt(cs.GetSectionName(),TEXT(#mm),cs.mm,path)
#define NLITE_READ_INI_STR(cs,mm,bv,path) \
- GetPrivateProfileString(cs.GetSectionName(),TEXT(#mm),cs.mm.c_str(),&bv[0],bv.size(),path);\
+ GetPrivateProfileString(cs.GetSectionName(),TEXT(#mm),cs.mm,&bv[0],bv.size(),path);\
cs.mm = &bv[0]\
/*\83}\83N\83\8d\81@\8fI\97¹*/
#define NLITE_WRITE_INI_INT(cs,mm,path) WritePrivateProfileInt(cs.GetSectionName(),TEXT(#mm),cs.mm,path)
-#define NLITE_WRITE_INI_STR(cs,mm,path) WritePrivateProfileString(cs.GetSectionName(),TEXT(#mm),cs.mm.c_str(),path)
+#define NLITE_WRITE_INI_STR(cs,mm,path) WritePrivateProfileString(cs.GetSectionName(),TEXT(#mm),cs.mm,path)
static LPCTSTR headerFormat = TEXT("headerholSize%u");
static LPCTSTR headerOrderFormat = TEXT("headerOrderArray%u");
//crp\82Ì\90Ý\92è\92l\93Ç\82Ý\8d\9e\82Ý
- NLITE_READ_INI_INT(crp,besideLengthFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,besideLengthFlag,propertyPath);
- NLITE_READ_INI_INT(crp,bspReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,bspReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,commentReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,commentReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,managementReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,managementReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,maxCommentLength,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,maxCommentLength,propertyPath);
- NLITE_READ_INI_INT(crp,newLineReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,newLineReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,ngUserReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,ngUserReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,ngWordReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,ngWordReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,teropReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,teropReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,userCommentReadFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(crp,userCommentReadFlag,propertyPath);
- NLITE_READ_INI_STR(crp,outString,buffer,propertyPath.c_str());
+ NLITE_READ_INI_STR(crp,outString,buffer,propertyPath);
- NLITE_READ_INI_STR(crp,shortComment,buffer,propertyPath.c_str());
+ NLITE_READ_INI_STR(crp,shortComment,buffer,propertyPath);
//commentview\90Ý\92è\92l\93Ç\82Ý\8d\9e\82Ý
- NLITE_READ_INI_INT(cvp,anonymousIDLinkColor,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,anonymousIDLinkColor,propertyPath);
- NLITE_READ_INI_INT(cvp,backColor,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,backColor,propertyPath);
- NLITE_READ_INI_INT(cvp,baseStringColor,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,baseStringColor,propertyPath);
- NLITE_READ_INI_INT(cvp,commentFoldingFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,commentFoldingFlag,propertyPath);
- NLITE_READ_INI_INT(cvp,commentTimeType,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,commentTimeType,propertyPath);
- NLITE_READ_INI_INT(cvp,IDLinkColor,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,IDLinkColor,propertyPath);
- NLITE_READ_INI_INT(cvp,lineColor,propertyPath.c_str());
+ NLITE_READ_INI_INT(cvp,lineColor,propertyPath);
TCHAR headerKey[_MAX_PATH];
for(UINT_PTR index = 0;index < ARRAY_LENGTH(cvp.headerholSize);index++){
_stprintf(headerKey,headerFormat,index);
_stprintf(headerOrderKey,headerOrderFormat,index);
- cvp.headerholSize[index] = GetPrivateProfileInt(cvp.GetSectionName(),headerKey,cvp.headerholSize[index],propertyPath.c_str());
- cvp.headerOraderArray[index] = GetPrivateProfileInt(cvp.GetSectionName(),headerOrderKey,index,propertyPath.c_str());
+ cvp.headerholSize[index] = GetPrivateProfileInt(cvp.GetSectionName(),headerKey,cvp.headerholSize[index],propertyPath);
+ cvp.headerOraderArray[index] = GetPrivateProfileInt(cvp.GetSectionName(),headerOrderKey,index,propertyPath);
}
//mainframe\90Ý\92è\92l\93Ç\8eæ
- NLITE_READ_INI_INT(mfp,windowFrontFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(mfp,windowFrontFlag,propertyPath);
- NLITE_READ_INI_INT(mfp,windowSize.cx,propertyPath.c_str());
+ NLITE_READ_INI_INT(mfp,windowSize.cx,propertyPath);
- NLITE_READ_INI_INT(mfp,windowSize.cy,propertyPath.c_str());
+ NLITE_READ_INI_INT(mfp,windowSize.cy,propertyPath);
//general\90Ý\92è\92l\93Ç\8eæ
- NLITE_READ_INI_INT(gp,activeCountTimeFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,activeCountTimeFlag,propertyPath);
- NLITE_READ_INI_INT(gp,autoColorRegisterFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,autoColorRegisterFlag,propertyPath);
- NLITE_READ_INI_INT(gp,autoNameRegisterFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,autoNameRegisterFlag,propertyPath);
- NLITE_READ_INI_INT(gp,autoNameUpdateFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,autoNameUpdateFlag,propertyPath);
- NLITE_READ_INI_STR(gp,browserPath,buffer,propertyPath.c_str());
+ NLITE_READ_INI_STR(gp,browserPath,buffer,propertyPath);
- NLITE_READ_INI_INT(gp,commentLogAutoSaveFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,commentLogAutoSaveFlag,propertyPath);
- NLITE_READ_INI_STR(gp,commentPath,buffer,propertyPath.c_str());
+ NLITE_READ_INI_STR(gp,commentPath,buffer,propertyPath);
- NLITE_READ_INI_INT(gp,defaultBroserFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,defaultBroserFlag,propertyPath);
- NLITE_READ_INI_INT(gp,numberNameFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,numberNameFlag,propertyPath);
- NLITE_READ_INI_INT(gp,userCountUpdateFlag,propertyPath.c_str());
+ NLITE_READ_INI_INT(gp,userCountUpdateFlag,propertyPath);
CNLiteString browserTypeName;
- GetPrivateProfileString(gp.GetSectionName(),TEXT(TOSTR(browserType)),bt_none,&buffer[0],buffer.size(),propertyPath.c_str());
+ GetPrivateProfileString(gp.GetSectionName(),TEXT(TOSTR(browserType)),bt_none,&buffer[0],buffer.size(),propertyPath);
browserTypeName = &buffer[0];
funcs_type::iterator it = funcs.find(browserTypeName);
propertyPath += TEXT("\\qwerty_nico");
- if(PathIsDirectory(propertyPath.c_str()) == FALSE){
+ if(PathIsDirectory(propertyPath) == FALSE){
- if(CreateDirectory(propertyPath.c_str(),NULL) == 0){
+ if(CreateDirectory(propertyPath,NULL) == 0){
throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__));
}
propertyPath += TEXT("\\nlite");
- if(PathIsDirectory(propertyPath.c_str()) == FALSE){
+ if(PathIsDirectory(propertyPath) == FALSE){
- if(CreateDirectory(propertyPath.c_str(),NULL) == 0){
+ if(CreateDirectory(propertyPath,NULL) == 0){
throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__));
}
propertyPath += TEXT("\\property.ini");
- if(PathFileExists(propertyPath.c_str())== FALSE || PathIsDirectory(propertyPath.c_str()) == TRUE){
- HANDLE hPropertyini = CreateFile(propertyPath.c_str(),GENERIC_READ | GENERIC_WRITE,FILE_SHARE_READ | FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
+ if(PathFileExists(propertyPath)== FALSE || PathIsDirectory(propertyPath) == TRUE){
+ HANDLE hPropertyini = CreateFile(propertyPath,GENERIC_READ | GENERIC_WRITE,FILE_SHARE_READ | FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
if(hPropertyini == INVALID_HANDLE_VALUE ){
//\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\90Ý\92è\8f\91\82«\8d\9e\82Ý
- NLITE_WRITE_INI_INT(crp,besideLengthFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,besideLengthFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,bspReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,bspReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,commentReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,commentReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,managementReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,managementReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,maxCommentLength,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,maxCommentLength,propertyPath);
- NLITE_WRITE_INI_INT(crp,newLineReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,newLineReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,ngUserReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,ngUserReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,ngWordReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,ngWordReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,teropReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,teropReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,userCommentReadFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(crp,userCommentReadFlag,propertyPath);
- NLITE_WRITE_INI_STR(crp,outString,propertyPath.c_str());
+ NLITE_WRITE_INI_STR(crp,outString,propertyPath);
- NLITE_WRITE_INI_STR(crp,shortComment,propertyPath.c_str());
+ NLITE_WRITE_INI_STR(crp,shortComment,propertyPath);
//commentview\90Ý\92è\92l\8f\91\82«\8d\9e\82Ý
- NLITE_WRITE_INI_INT(cvp,anonymousIDLinkColor,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,anonymousIDLinkColor,propertyPath);
- NLITE_WRITE_INI_INT(cvp,backColor,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,backColor,propertyPath);
- NLITE_WRITE_INI_INT(cvp,baseStringColor,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,baseStringColor,propertyPath);
- NLITE_WRITE_INI_INT(cvp,commentFoldingFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,commentFoldingFlag,propertyPath);
- NLITE_WRITE_INI_INT(cvp,commentTimeType,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,commentTimeType,propertyPath);
- NLITE_WRITE_INI_INT(cvp,IDLinkColor,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,IDLinkColor,propertyPath);
- NLITE_WRITE_INI_INT(cvp,lineColor,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(cvp,lineColor,propertyPath);
TCHAR headerKey[_MAX_PATH];
for(UINT_PTR index = 0;index < ARRAY_LENGTH(cvp.headerholSize);index++){
_stprintf(headerKey,headerFormat,index);
_stprintf(headerOrderKey,headerOrderFormat,index);
- cvp.headerholSize[index] = WritePrivateProfileInt(cvp.GetSectionName(),headerKey,cvp.headerholSize[index],propertyPath.c_str());
- cvp.headerholSize[index] = WritePrivateProfileInt(cvp.GetSectionName(),headerOrderKey,cvp.headerOraderArray[index],propertyPath.c_str());
+ cvp.headerholSize[index] = WritePrivateProfileInt(cvp.GetSectionName(),headerKey,cvp.headerholSize[index],propertyPath);
+ cvp.headerholSize[index] = WritePrivateProfileInt(cvp.GetSectionName(),headerOrderKey,cvp.headerOraderArray[index],propertyPath);
}
//mainframe\90Ý\92è\92l\8f\91\82«\8d\9e\82Ý
- NLITE_WRITE_INI_INT(mfp,windowFrontFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(mfp,windowFrontFlag,propertyPath);
- NLITE_WRITE_INI_INT(mfp,windowSize.cx,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(mfp,windowSize.cx,propertyPath);
- NLITE_WRITE_INI_INT(mfp,windowSize.cy,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(mfp,windowSize.cy,propertyPath);
//general\90Ý\92è\92l\8f\91\82«\8d\9e\82Ý
- NLITE_WRITE_INI_INT(gp,activeCountTimeFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,activeCountTimeFlag,propertyPath);
- NLITE_WRITE_INI_INT(gp,autoColorRegisterFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,autoColorRegisterFlag,propertyPath);
- NLITE_WRITE_INI_INT(gp,autoNameRegisterFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,autoNameRegisterFlag,propertyPath);
- NLITE_WRITE_INI_INT(gp,autoNameUpdateFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,autoNameUpdateFlag,propertyPath);
- NLITE_WRITE_INI_STR(gp,browserPath,propertyPath.c_str());
+ NLITE_WRITE_INI_STR(gp,browserPath,propertyPath);
- NLITE_WRITE_INI_INT(gp,commentLogAutoSaveFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,commentLogAutoSaveFlag,propertyPath);
- NLITE_WRITE_INI_STR(gp,commentPath,propertyPath.c_str());
+ NLITE_WRITE_INI_STR(gp,commentPath,propertyPath);
- NLITE_WRITE_INI_INT(gp,defaultBroserFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,defaultBroserFlag,propertyPath);
- NLITE_WRITE_INI_INT(gp,numberNameFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,numberNameFlag,propertyPath);
- NLITE_WRITE_INI_INT(gp,userCountUpdateFlag,propertyPath.c_str());
+ NLITE_WRITE_INI_INT(gp,userCountUpdateFlag,propertyPath);
CNLiteString browserTypeName;
}
- WritePrivateProfileString(gp.GetSectionName(),TEXT(TOSTR(browserType)),browserTypeName.c_str(),propertyPath.c_str());
+ WritePrivateProfileString(gp.GetSectionName(),TEXT(TOSTR(browserType)),browserTypeName,propertyPath);
return;
}
\ No newline at end of file