convert utf8

This commit is contained in:
2026-10-13 11:20:08 +08:00
parent e73ef3aac0
commit bd3861f7e0
8 changed files with 61 additions and 60 deletions
+9 -9
View File
@@ -1,4 +1,4 @@
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#include <stdio.h>
@@ -44,10 +44,10 @@ void __fastcall TUpgradeForm::FormDestroy(TObject *Sender)
void __fastcall TUpgradeForm::FormCloseQuery(TObject *Sender, bool &CanClose)
{
if( m_pThread ){
String msg = m_iMode==1 ? L"正在处理中,确认退出程序?"
: L"正在升级中,是否确定中止?";
String msg = m_iMode==1 ? L"正在处理中,确认退出程序?"
: L"正在升级中,是否确定中止?";
int mrRet = MessageBox(Handle, msg.c_str(), L"退出",
int mrRet = MessageBox(Handle, msg.c_str(), L"退出",
MB_ICONQUESTION | MB_YESNO);;
if( mrRet==mrNo )
@@ -58,8 +58,8 @@ void __fastcall TUpgradeForm::FormCloseQuery(TObject *Sender, bool &CanClose)
void __fastcall TUpgradeForm::FormShow(TObject *Sender)
{
Caption = m_iMode==0 ? L"自动升级程序"
: L"MD5生成程序";
Caption = m_iMode==0 ? L"自动升级程序"
: L"MD5生成程序";
m_pThread = new TUpgradeThread(true, m_iMode, m_idSoft, m_sVar, Handle );
m_pThread->Start();
@@ -102,13 +102,13 @@ void __fastcall TUpgradeForm::UMComplete(TMessage &msg)
if( m_iMode==0 ){
if( msg.WParam!=0 )
ShowMessage( "本次更新未能完成" );
ShowMessage( "本次更新未能完成" );
}
else if( m_iMode==1 ){
if( msg.WParam==0 )
ShowMessage( "处理完毕" );
ShowMessage( "处理完毕" );
else
ShowMessage( "异常中止" );
ShowMessage( "异常中止" );
}
Close();