瀏覽代碼

完成基本功能。

sat23 4 年之前
父節點
當前提交
f96362dab3
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 2 2
      TCLTools/TCLTools/TCLTools.vcproj
  2. 5 2
      TCLTools/TCLTools/TCLToolsDlg.cpp

+ 2 - 2
TCLTools/TCLTools/TCLTools.vcproj

@@ -99,7 +99,7 @@
 			OutputDirectory="..\..\..\..\bin\$(SolutionName)"
 			IntermediateDirectory="$(OutDir)\$(ProjectName)\$(ConfigurationName)"
 			ConfigurationType="1"
-			UseOfMFC="2"
+			UseOfMFC="1"
 			CharacterSet="2"
 			WholeProgramOptimization="1"
 			>
@@ -127,7 +127,7 @@
 				EnableIntrinsicFunctions="true"
 				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
 				MinimalRebuild="false"
-				RuntimeLibrary="2"
+				RuntimeLibrary="0"
 				EnableFunctionLevelLinking="true"
 				UsePrecompiledHeader="2"
 				WarningLevel="3"

+ 5 - 2
TCLTools/TCLTools/TCLToolsDlg.cpp

@@ -333,9 +333,12 @@ void CTCLToolsDlg::OnBnClickedExecCmd()
                 }
 
                 // �零데俚쌘令;
-                if ( cmdpara.nOption == CMDOPT_Get )
+                if ( cmdpara.nOption == CMDOPT_Get && cmdpara._rtnData.size() < 3)
                 {
-                    SetDlgItemInt(IDC_EDIT_INT, cmdpara._rtnData[0]);
+                    if ( cmdpara._rtnData.size() == 1)
+                        SetDlgItemInt(IDC_EDIT_INT, (byte)cmdpara._rtnData[0]);
+                    else if ( cmdpara._rtnData.size() == 2)
+                        SetDlgItemInt(IDC_EDIT_INT, (byte)cmdpara._rtnData[0] << 8 | (byte)cmdpara._rtnData[1]);
                 }
 
                 // �零覩俚륜눔鞫刻;