Vc2013??????????C++??????????
???????????? ???????[ 2013/10/28 14:32:31 ] ????????
??????????????????
?????????????????????????н????????
???????|???|????????????"????????"?????
???????????Visual C++|????|??????????????
?????????????????TestStock?????????????????????????????????????????????
???????????в????
???????????????????|????|???????????????????????????????????????????????????????????????????????Test1?????????????????????
???????????????Mfc????е?????
?????????????????????Dll???????????????????Mfc???????е????????????????????????????Mfc???????е??????obj????????????£?
????1????Stock????д???????????
?????????????????Demo?????????????????????cpp???????????Stock???
????2???????????????????????????????????????????
????????????????????У?????????|??????|???棬????????????м???
????$(SolutionDir)Stock$(Configuration)
?????????????????????????????Debug?????$(SolutionDir)????????????????$(SolutionDir)Stock???????????μ?Stock??????$(Configuration)??debug?????е???Debug??????????????????????demo.obj
???????????????|?????У?????????????????demo.obj????????·?????????????????????????г??????????????????
?????????????demo??????????#include "demo.h"?????????????????δ????????????????????????????У?????????|C/C++|???棬??"?????????"??????$(SolutionDir)Stock??????Demo.h?????????С?
????3???????????д???Demo??????
????????????????????unittest1?????
????????#include "Demo.h"
?????????TEST_METHOD(TestMethod1)????????????????
????Demo demo;
????????????????????????????????C???п??????δ??????????????????????????????μ????????
????4??C???п??????
???????????Mfc???????????t??????Mfc????????????????/MTD??????????C???п???????????????????/MDD??????????C???п?
?????????????????????п??????????/MTD???ɡ?
?????????????????????????????|C/C++|????????????п????????????????? (/MTd)
????5??δ????????????????
???????????????demo.cpp??include??stdafx.h????????????????????????demo.obj???????stdafx.obj???ɡ?
??????????????д????????
????1????Stock????е?????????demo?????????Add????????????????????
????????????????Add??????Cpp????????????????????0??????κ????顣????????????????????
????2???????????У???????????????
TEST_METHOD(TestMethod1)
{
Demo demo;
Assert::AreEqual(5?? demo.Add(2?? 3));
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11