InitCommonControls();
if(_Module.Init(NULL, hInstance) != S_OK){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(InitializeNlite() != TRUE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
} catch(nlite::Exception &e){
+ UnexpectedErrorMessageShow(TEXT("\83n\83\93\83h\83\8b\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81["),e.what(),e.getLineNo(),e.getFileName(),e.getFunctionName());
- MessageBox(NULL,e.what(),TEXT("\83n\83\93\83h\83\8b\82³\82ê\82Ä\82È\82¢\83G\83\89\81["),MB_ICONERROR | MB_OK);
- errprint(TEXT(NLITE_ERR_MESSAGE_FORMAT),e.what(),e.getLineNo(),e.getFileName());
goto nlitefinally;
}catch(std::exception &e){
-
- MessageBoxA(NULL,e.what(),"\83n\83\93\83h\83\8b\82³\82ê\82Ä\82È\82¢\95s\96¾\82Ì\83G\83\89\81[",MB_ICONERROR | MB_OK);
errprint_mb(CP_THREAD_ACP,NLITE_ERR_MESSAGE_FORMAT,e.what(),__LINE__,__FILE__);
+ MessageBoxA(NULL,e.what(),"\83n\83\93\83h\83\8b\82³\82ê\82Ä\82È\82¢\95s\96¾\82Ì\83G\83\89\81[",MB_ICONERROR | MB_OK);
+
goto nlitefinally;
}
if(err != ERROR_SUCCESS){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
const CApplicationInfo &appInfo = CApplicationInfo::getInstance();
if(hInternet == NULL){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(SHGetFolderPathW(0,CSIDL_LOCAL_APPDATA,0,SHGFP_TYPE_CURRENT,localAppDataPath) != S_OK){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
}
VOID nlite::UnexpectedErrorMessageShow(LPCTSTR headMessage,LPCTSTR summary,UINT line,LPCTSTR fileName,LPCTSTR function){
- CNLiteString errMessage;
+ tstring errMessage;
errMessage = headMessage;
errMessage += TEXT("\91z\92è\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81[\82ª\94\90¶\82µ\82Ü\82µ\82½\81B\83A\83v\83\8a\83P\81[\83V\83\87\83\93\94z\92u\83t\83H\83\8b\83_\82É\8dì\90¬\82³\82ê\82½\83\8d\83O\83t\83@\83C\83\8b\82ð\93n\82µ\82Ä\82à\82ç\82¦\82é\82Æ\8aJ\94\8eÒ\82ª\94ñ\8fí\82É\8aì\82Ñ\82Ü\82·");
errMessage += TEXT("\r\n\83G\83\89\81[\83\81\83b\83Z\81[\83W:");
errMessage += summary;
DebugOutW(fileName,function,line,DUMPING__DEBUGER__ | LINEFEAD__DEBUGER__ ,ERRORMODE__DEBUGER__,TEXT("%s"),errMessage);
- ::MessageBox(NULL,errMessage,TEXT("\91z\92è\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81["),MB_ICONERROR | MB_OK);
+ ::MessageBox(NULL,errMessage.c_str(),TEXT("\91z\92è\82³\82ê\82Ä\82¢\82È\82¢\83G\83\89\81["),MB_ICONERROR | MB_OK);
if(nRet <= 0){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(dwSize <= 0){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
pBlock = malloc(dwSize);
assert(bRet);
if(bRet != TRUE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
UINT ulen;
if(VerQueryValue(pBlock,TEXT("\\VarFileInfo\\Translation"),(LPVOID*)&lpTranslate,&ulen) == FALSE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
TCHAR subBlock[_MAX_PATH];
if(VerQueryValue(pBlock,subBlock,(LPVOID *)&pProductVersion,&ulen) == FALSE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(VerQueryValue(pBlock,subBlock,(LPVOID *)&pOriginalFileName,&ulen) == FALSE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(VerQueryValue(pBlock,subBlock,(LPVOID *)&pLegalCopyright,&ulen) == FALSE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
if(VerQueryValue(pBlock,subBlock,(LPVOID *)&pProductName,&ulen) == FALSE){
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
dc.LineTo(timeViewRect.right,rc.bottom);
dc.DrawTextW(noString,_tcslen(noString),&noViewRect,DT_WORD_ELLIPSIS);
- dc.DrawTextW(chatData.listenerData->user_id,chatData.listenerData->user_id.GetLength(),&userNameViewRect,DT_WORD_ELLIPSIS);
- dc.DrawTextW(chatData.chatBuf,chatData.chatBuf.GetLength(),&chatViewRect,DT_WORDBREAK);
+ dc.DrawTextW(chatData.listenerData->user_id,chatData.listenerData->user_id.Length(),&userNameViewRect,DT_WORD_ELLIPSIS);
+ dc.DrawTextW(chatData.chatBuf,chatData.chatBuf.Length(),&chatViewRect,DT_WORDBREAK);
dc.DrawTextW(dateString,_tcslen(dateString),&timeViewRect,DT_WORD_ELLIPSIS);
return;
CPaintDC pdc(*this);
pdc.SelectFont(AtlGetDefaultGuiFont());
- ::DrawTextW(pdc,chatData.chatBuf,chatData.chatBuf.GetLength(),&drowSize, DT_CALCRECT | DT_WORDBREAK);
+ ::DrawTextW(pdc,chatData.chatBuf,chatData.chatBuf.Length(),&drowSize, DT_CALCRECT | DT_WORDBREAK);
drowSize.top -= 2;
drowSize.bottom += 2;
Exception::Exception(const char* const& errMessage):exception(errMessage){}
-Exception::Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName):
+Exception::Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):
wErrMessage(errMessage),
- line(in_line)
+ line(in_line),
+ function(in_function)
{
WCHAR file[_MAX_FNAME];
WCHAR ext[_MAX_EXT];
}
-LPCWSTR Exception::what(){
+LPCTSTR Exception::what(){
return wErrMessage;
return line;
}
-LPCWSTR Exception::getFileName(){
+LPCTSTR Exception::getFileName(){
return fileName;
}
+LPCTSTR Exception::getFunctionName(){
-AppInitException::AppInitException(UINT_PTR in_line,LPCTSTR in_fileName):Exception(TEXT("\83A\83v\83\8a\83P\81[\83V\83\87\83\93\8f\89\8aú\89»\82É\8e¸\94s\82µ\82Ü\82µ\82½"),in_line,in_fileName){}
+ return function;
+}
+
+
+AppInitException::AppInitException(UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):Exception(TEXT("\83A\83v\83\8a\83P\81[\83V\83\87\83\93\8f\89\8aú\89»\82É\8e¸\94s\82µ\82Ü\82µ\82½"),in_line,in_fileName,in_function){}
-NLIBException::NLIBException(LPCTSTR errmessage,NLIB_RESULT rslt,UINT_PTR in_line,LPCTSTR in_fileName):errcode(rslt),Exception(errmessage,in_line,in_fileName){}
+NLIBException::NLIBException(LPCTSTR errmessage,NLIB_RESULT rslt,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):errcode(rslt),Exception(errmessage,in_line,in_fileName,in_function){}
-NLiveException::NLiveException(LPCTSTR errmessage,UINT_PTR in_line,LPCTSTR in_fileName):Exception(errmessage,in_line,in_fileName){}
+NLiveException::NLiveException(LPCTSTR errmessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function):Exception(errmessage,in_line,in_fileName,in_function){}
}
\ No newline at end of file
CNLiteString wErrMessage;
UINT_PTR line;
CNLiteString fileName;
+ CNLiteString function;
public:
///
Exception();
Exception(const char* const& errMessage);
- Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName);
+ Exception(const wchar_t * const & errMessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function);
///
///\83G\83\89\81[\95¶\8c¾\8eæ\93¾
///
- LPCWSTR what();
+ LPCTSTR what();
///
///
///\83G\83\89\81[\94\90¶\83t\83@\83C\83\8b\96¼\8eæ\93¾
///
- LPCWSTR getFileName();
+ LPCTSTR getFileName();
+
+
+ ///
+ ///\83G\83\89\81[\94\90¶\8aÖ\90\94\96¼\82ð\8eæ\93¾
+ ///
+ LPCTSTR getFunctionName();
};
///
///\83R\83\93\83X\83g\83\89\83N\83^
///
- AppInitException(UINT_PTR in_line,LPCTSTR in_fileName);
+ AppInitException(UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function);
};
NLIB_RESULT errcode;
public:
- NLIBException(LPCTSTR errmessage,NLIB_RESULT rslt,UINT_PTR in_line,LPCTSTR in_fileName);
+ NLIBException(LPCTSTR errmessage,NLIB_RESULT rslt,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function);
///
///\83R\83\93\83X\83g\83\89\83N\83^
///
- NLiveException(LPCTSTR errmessage,UINT_PTR in_line,LPCTSTR in_fileName);
+ NLiveException(LPCTSTR errmessage,UINT_PTR in_line,LPCTSTR in_fileName,LPCTSTR in_function);
};
VOID CNliteMainFrame::Initialize(LPCTSTR localAppDataPath){
- nliteProperty.ReadIniFile();
+ nliteProperty.ReadProperty();
commentView.SetProperty(nliteProperty.cvp);
VOID CNliteMainFrame::Finalaize(){
nliteProperty.cvp = commentView.GetProperty();
- nliteProperty.WriteIniFile();
+ nliteProperty.WriteProperty();
}
//\83N\83b\83L\81[\82Ì\90Ý\92è
case NICOLIVE_EVENT_ERR_CONNECT:
- throw NLiveException(TEXT("\90Ú\91±\83G\83\89\81[\82Å\82·"),__LINE__,TEXT(__FILE__));
+ throw NLiveException(TEXT("\90Ú\91±\83G\83\89\81[\82Å\82·"),__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
break;
default:
- throw NLiveException(TEXT("\97\\8aú\82µ\82È\82¢\83\81\83b\83Z\81[\83W\82ª\91\97\90M\82³\82ê\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__));
+ throw NLiveException(TEXT("\97\\8aú\82µ\82È\82¢\83\81\83b\83Z\81[\83W\82ª\91\97\90M\82³\82ê\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
break;
}
rslt = NicoVideoAuth_getNicoVideoAuth(nicoVideoAuth,bt);
if(rslt != NLIB_ERR_OK){
- throw NLIBException(TEXT("\83j\83R\83j\83R\93®\89æ\94F\8fØ\8fî\95ñ\8eæ\93¾\82É\8e¸\94s\82µ\82Ü\82µ\82½"),rslt,__LINE__,TEXT(__FILE__));
+ throw NLIBException(TEXT("\83j\83R\83j\83R\93®\89æ\94F\8fØ\8fî\95ñ\8eæ\93¾\82É\8e¸\94s\82µ\82Ü\82µ\82½"),rslt,__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
}
BOOL CCommentMaker::SetChatString(LPCTSTR chatString){
- if(this->chatString.GetLength() != 0)return FALSE;
+ if(this->chatString.Length() != 0)return FALSE;
this->chatString = chatString;
return TRUE;
#define NLITE_WRITE_INI_STR(cs,mm,path) WritePrivateProfileString(cs.GetSectionName(),TEXT(#mm),cs.mm,path)
+
+
+#define NLITE_XMLELLMENT_WRITE(s,p) s->WriteStartElement(NULL, _tcsstr(CComBSTR(typeid(p).name()),TEXT("::")) + 2, NULL)
+
+#define NLITE_ATTRIBUTE_WRITE_STR(s,n) s->WriteAttributeString(NULL, _tcsstr(TEXT(#n),TEXT(".")) + 1, NULL, n)
+
+
+#define NLITE_ATTRIBUTE_WRITE_INT(s,n) \
+ {\
+ TCHAR buffer[sizeof(n) * 8];\
+ _stprintf(buffer,TEXT("%d"),static_cast<INT>(n));\
+ s->WriteAttributeString(NULL, _tcsstr(TEXT(#n),TEXT(".")) + 1, NULL,buffer );\
+}
+
+#define NLITE_XML_WRITE_FOR_INT(s,n)\
+ {\
+ TCHAR nbuffer[LENGTH_256];\
+ TCHAR buffer[sizeof(n[0]) * 8];\
+ for(UINT_PTR index = 0;index < ARRAY_LENGTH(n);index++){\
+ _stprintf(nbuffer,TEXT("%s%d"),_tcsstr(TEXT(#n),TEXT(".")) + 1,index);\
+ _stprintf(buffer,TEXT("%d"),n[index]);\
+ s->WriteAttributeString(NULL, nbuffer, NULL,buffer );\
+ }\
+}
+
+
+
static LPCTSTR headerFormat = TEXT("headerholSize%u");
static LPCTSTR headerOrderFormat = TEXT("headerOrderArray%u");
static const LPCTSTR bt_none = TEXT("none");
static const LPCTSTR bt_firefox = TEXT("firefox");
static const LPCTSTR bt_iecm = TEXT("iecm");
+
+
static
BOOL
WINAPI
commentReadFlag(FALSE),
ngWordReadFlag(TRUE),
ngUserReadFlag(TRUE),
- managementReadFlag(TRUE),
+ administratorCommentReadFlag(TRUE),
bspReadFlag(TRUE),
userCommentReadFlag(TRUE),
teropReadFlag(TRUE),
GeneralProperty::GeneralProperty():
userCountUpdateFlag(TRUE),
commentLogAutoSaveFlag(FALSE),
- defaultBroserFlag(TRUE),
+ defaultBrowserFlag(TRUE),
autoNameRegisterFlag(FALSE),
autoNameUpdateFlag(FALSE),
numberNameFlag(FALSE),
}
-VOID Property::ReadIniFile(){
+VOID Property::ReadProperty(){
CreatePropertyFile();
-
+
std::vector<TCHAR> buffer(LENGTH_2048);
//crp\82Ì\90Ý\92è\92l\93Ç\82Ý\8d\9e\82Ý
NLITE_READ_INI_INT(crp,commentReadFlag,propertyPath);
- NLITE_READ_INI_INT(crp,managementReadFlag,propertyPath);
+ NLITE_READ_INI_INT(crp,administratorCommentReadFlag,propertyPath);
NLITE_READ_INI_INT(crp,maxCommentLength,propertyPath);
NLITE_READ_INI_INT(cvp,IDLinkColor,propertyPath);
NLITE_READ_INI_INT(cvp,lineColor,propertyPath);
-
+
TCHAR headerKey[_MAX_PATH];
TCHAR headerOrderKey[_MAX_PATH];
NLITE_READ_INI_STR(gp,commentPath,buffer,propertyPath);
- NLITE_READ_INI_INT(gp,defaultBroserFlag,propertyPath);
+ NLITE_READ_INI_INT(gp,defaultBrowserFlag,propertyPath);
NLITE_READ_INI_INT(gp,numberNameFlag,propertyPath);
gp.browserType = it->second;
}else{
- throw AppInitException(__LINE__,TEXT(__FILE__));
+ throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
return;
if(PathIsDirectory(propertyPath) == FALSE){
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__));
+ throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
}
if(PathIsDirectory(propertyPath) == FALSE){
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__));
+ throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
}
- propertyPath += TEXT("\\property.ini");
+ propertyPath += TEXT("\\property.xml");
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);
+ HANDLE hPropertyxml = CreateFile(propertyPath,GENERIC_READ | GENERIC_WRITE,FILE_SHARE_READ | FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
- if(hPropertyini == INVALID_HANDLE_VALUE ){
+ if(hPropertyxml == INVALID_HANDLE_VALUE ){
- throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__));
+ throw Exception(TEXT("\90Ý\92è\83t\83@\83C\83\8b\8dì\90¬\82É\8e¸\94s\82µ\82Ü\82µ\82½"),__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
}
- CloseHandle(hPropertyini);
+ CloseHandle(hPropertyxml);
}
return;
}
-VOID Property::WriteIniFile(){
+VOID Property::WriteProperty(){
CreatePropertyFile();
+ CComPtr<IXmlWriter> pWriter;
+ CreateXmlWriter(__uuidof(IXmlWriter), reinterpret_cast<void**>(&pWriter), 0);
+
+ // XML\83t\83@\83C\83\8b\83p\83X\8dì\90¬
+ TCHAR xml[MAX_PATH];
+ _tcscpy(xml,this->propertyPath);
+
+
+
+ // \83t\83@\83C\83\8b\83X\83g\83\8a\81[\83\80\8dì\90¬
+ CComPtr<IStream> pStream;
+ SHCreateStreamOnFile(xml, STGM_CREATE | STGM_WRITE, &pStream);
+
+ pWriter->SetOutput(pStream);
+
+ // \83C\83\93\83f\83\93\83g\97L\8cø\89»
+ pWriter->SetProperty(XmlWriterProperty_Indent, TRUE);
+
+ // <?xml version="1.0" encoding="UTF-8"?>
+ pWriter->WriteStartDocument(XmlStandalone_Omit);
+ pWriter->WriteStartElement(NULL,TEXT("nliteconfig"),NULL);
+ //\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\90Ý\92è\8f\91\82«\8d\9e\82Ý
+ NLITE_XMLELLMENT_WRITE(pWriter,crp);
+ NLITE_ATTRIBUTE_WRITE_STR(pWriter,crp.outString);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.administratorCommentReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.besideLengthFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.bspReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.commentReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.maxCommentLength);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.newLineReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.ngUserReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.ngWordReadFlag);
+ NLITE_ATTRIBUTE_WRITE_STR(pWriter,crp.shortComment);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.teropReadFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,crp.userCommentReadFlag);
+ pWriter->WriteEndElement();
+ //commentview\90Ý\92è\92l\8f\91\82«\8d\9e\82Ý
+ NLITE_XMLELLMENT_WRITE(pWriter,cvp);
+ NLITE_XML_WRITE_FOR_INT(pWriter,cvp.headerholSize);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.anonymousIDLinkColor);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.backColor);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.baseStringColor);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.commentFoldingFlag);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.commentTimeType);
+ NLITE_XML_WRITE_FOR_INT(pWriter,cvp.headerOraderArray);
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.IDLinkColor);
+ pWriter->WriteEndElement();
+
+
+ pWriter->WriteEndDocument();
+ /*
+ {\
+ TCHAR buffer[LENGTH_256];\
+ for(UINT_PTR index = 0;index < ARRAY_LENGTH(cvp.headerholSize);index++){\
+ _stprintf(buffer,TEXT("%s%d"),cvp.headerholSize,index);\
+ NLITE_ATTRIBUTE_WRITE_INT(pWriter,cvp.headerholSize[index]);\
+ }\
+}
+*/
+
+ /*
//\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);
NLITE_WRITE_INI_INT(crp,commentReadFlag,propertyPath);
- NLITE_WRITE_INI_INT(crp,managementReadFlag,propertyPath);
+ NLITE_WRITE_INI_INT(crp,administratorCommentReadFlag,propertyPath);
NLITE_WRITE_INI_INT(crp,maxCommentLength,propertyPath);
NLITE_WRITE_INI_STR(gp,commentPath,propertyPath);
- NLITE_WRITE_INI_INT(gp,defaultBroserFlag,propertyPath);
+ NLITE_WRITE_INI_INT(gp,defaultBrowserFlag,propertyPath);
NLITE_WRITE_INI_INT(gp,numberNameFlag,propertyPath);
}
WritePrivateProfileString(gp.GetSectionName(),TEXT(TOSTR(browserType)),browserTypeName,propertyPath);
-
+ */
return;
}
};
-
+
#define COMMENTVIEW_HEADERITEMSIZE 5
public:
INT_PTR headerholSize[COMMENTVIEW_HEADERITEMSIZE]; //\83w\83b\83_\89¡\83T\83C\83Y
INT_PTR headerOraderArray[COMMENTVIEW_HEADERITEMSIZE]; //\83w\83b\83_\95À\82Ñ\8f\87\94z\97ñ
BOOL commentFoldingFlag; //\83R\83\81\83\93\83g\90Ü\82è\82½\82½\82Ý\83t\83\89\83O
UINT_PTR commentTimeType; //\83R\83\81\83\93\83g\8e\9e\8aÔ\95\\8e¦\83^\83C\83v
-
COLORREF backColor; //\8aî\92ê\82Ì\94w\8ci\90F
COLORREF baseStringColor; //\8aî\92ê\82Ì\95¶\8e\9a\90F
COLORREF IDLinkColor; //\8aî\92ê\82Ì\83n\83C\83p\81[\83\8a\83\93\83N\82Ì\90F
BOOL commentReadFlag; //\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL ngWordReadFlag; //NG\83\8f\81[\83h\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL ngUserReadFlag; //NG\83\86\81[\83U\81[\93Ç\82Ý\8fã\82°\83t\83\89\83O
- BOOL managementReadFlag; //\89^\89c\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
+ BOOL administratorCommentReadFlag; //\89^\89c\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL bspReadFlag; //\83o\83b\83N\83X\83e\81[\83W\83p\83X\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL userCommentReadFlag; //\83\86\81[\83U\81[\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL teropReadFlag; //\83e\83\8d\83b\83v\93Ç\82Ý\8fã\82°\83t\83\89\83O
BOOL userCountUpdateFlag; //\97\88\8fê\8eÒ\90\94\82ð\8dX\90V\82·\82é\82©\82Ì\83t\83\89\83O
BOOL commentLogAutoSaveFlag; //\83R\83\81\83\93\83g\8e©\93®\95Û\91¶\97p\82Ì\83t\83\89\83O
CNLiteString commentPath; //\83R\83\81\83\93\83g\83\8d\83O\95Û\91¶\8fê\8f\8a
- BOOL defaultBroserFlag; //\83\8a\83\93\83N\82ð\8aJ\82\8dÛ\82É\8aî\92ê\82Ì\83u\83\89\83E\83U\82ð\8eg\97p\82·\82é\82©\82Ì\83t\83\89\83O
+ BOOL defaultBrowserFlag; //\83\8a\83\93\83N\82ð\8aJ\82\8dÛ\82É\8aî\92ê\82Ì\83u\83\89\83E\83U\82ð\8eg\97p\82·\82é\82©\82Ì\83t\83\89\83O
BOOL autoNameRegisterFlag; //\83\86\81[\83U\96¼\8e©\93®\93o\98^\83t\83\89\83O
- BOOL autoNameUpdateFlag; //\8e©\93®\93o\98^\8e\9e\82É\8dX\90V\82·\82é\83t\83\89\83O
+ BOOL autoNameUpdateFlag; //\8dX\90V\82µ\82Ä\8e©\93®\93o\98^\82·\82é\83t\83\89\83O
BOOL numberNameFlag; //\90\94\8e\9a\82Ì\82Ý\82Ì\96¼\91O\82ð\8b\96\89Â\82·\82é\82©\82Ì\83t\83\89\83O
BOOL autoColorRegisterFlag; //\96¼\91O\93o\98^\8e\9d\82É\90F\82ð\8e©\93®\93I\82É\8ew\92è\82·\82é\82©\82Ì\83t\83\89\83O
BOOL activeCountTimeFlag; //\83A\83N\83e\83B\83u\90l\90\94\82ð\8e©\93®\8dX\90V\82·\82é\82©\82Ì\83t\83\89\83O
BROWSERTYPE browserType; //\83u\83\89\83E\83U\83^\83C\83v
-
+
///
///\83R\83\93\83X\83g\83\89\83N\83^
public:
VOID Initialize();
- VOID ReadIniFile();
+ VOID ReadProperty();
- VOID WriteIniFile();
+ VOID WriteProperty();
BROWSERTYPE CookieSetting();
#include "nlite_include.h"
namespace nlite{
-
+/*
///
///\83R\83\93\83X\83g\83\89\83N\83^
///
CNLITESTRING_THISTYPE::CNLITESTRING_THISTYPE(const CNLITESTRING_INTERNALSTRINGTYPE_REFERENCE in_str):CNLITESTRING_INTERNALSTRINGTYPE(in_str){}
CNLITESTRING_THISTYPE::CNLITESTRING_THISTYPE(const CNLITESTRING_THISTYPE_REFERENCE in_str):CNLITESTRING_INTERNALSTRINGTYPE(in_str){}
-
+*/
}
\ No newline at end of file
//\96¼\91O\82â\83N\83\89\83X\82ð\95Ï\82¦\82½\82¢\8fê\8d\87\82Í\82±\82±\82ð\95Ï\82¦\82é
#define CNLITESTRING_THISTYPE CNLiteString //\95¶\8e\9a\97ñ\83N\83\89\83X\96¼
-#define CNLITESTRING_INTERNALSTRINGTYPE CString //\93à\95\94\82Å\8f\88\97\9d\82ð\82·\82é\95¶\8e\9a\97ñ\83N\83\89\83X\96¼
+#define CNLITESTRING_INTERNALSTRINGTYPE CComBSTR //\93à\95\94\82Å\8f\88\97\9d\82ð\82·\82é\95¶\8e\9a\97ñ\83N\83\89\83X\96¼
#define CNLITESTRING_THISTYPE_REFERENCE CNLITESTRING_THISTYPE&
#define CNLITESTRING_INTERNALSTRINGTYPE_REFERENCE CNLITESTRING_INTERNALSTRINGTYPE&
-
-
+typedef CNLITESTRING_INTERNALSTRINGTYPE CNLITESTRING_THISTYPE;
+typedef std::basic_string<TCHAR> tstring;
+/*
///
///nlite\95¶\8e\9a\97ñ\83N\83\89\83X
///CString\82ð\8cp\8f³
public:
+ UINT_PTR GetLength(){
+ return this->Length();
+ }
};
+*/
}
\ No newline at end of file
#include <atlctrlx.h>
#include <atlsplit.h>
#include <shellapi.h>
-
+#include <xmllite.h>
+#pragma comment(lib, "xmllite.lib")
#pragma comment(lib,"ComCtl32.lib")
#pragma comment(lib,"atlthunk.lib")
#pragma comment(lib,"version.lib")