From fc19ffcf4d130b2ef7788475f4b7d7846f56eecd Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 10 一月 2025 09:58:41 +0800
Subject: [PATCH] 1.Servo菜单项;
---
SourceCode/Bond/Servo/Servo.cpp | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index 81b50bc..b422966 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -81,10 +81,16 @@
_tsplitpath_s(sAppFilename, sDrive, sDir, sFilename, sExt);
m_strAppDir = CString(sDrive) + CString(sDir);
m_strAppFile = CString(sFilename);
+ m_model.setWorkDir((LPTSTR)(LPCTSTR)m_strAppDir);
// 注册控件
CServoGraph::RegisterWndClass();
+
+
+ // 初始化Rx库
+ RX_Init();
+ HSMS_Initialize();
CServoDlg dlg;
@@ -117,3 +123,11 @@
return FALSE;
}
+int CServoApp::ExitInstance()
+{
+ m_model.term();
+ HSMS_Term();
+ RX_Term();
+
+ return CWinApp::ExitInstance();
+}
--
Gitblit v1.9.3