???????Windows??Linux???????????
???????????? ???????[ 2012/10/17 9:58:36 ] ????????
??????????????????????????????????????Windows??Linux???ж??ж?????????????????????Ч?????????С???????????Ч????????????????????????黯?????
??????????????????????????? ??????????????????????????????ж????????????????????????????????????????????????????Visual C++??????????????Linux??????????顣
????1??????
?????????Dynamic Link Library abbr??DLL???????????????о??????????????????????????С???????????Ч??????к?????????
??????????????????????????汾??????????????Static Link Library??????????????????????????г?????????????????????????????????????д?????????????????й????
??????Windows??Linux???????У??????????????????????????????????÷?????????????????????????????????????????????????????????????????÷?????????????????????????????????????????????????????????????飬???????VC++?????Windows??????????Linux?μ??????
????2?????????
????2.1 Windows???????
?????????????????Windows??ó????????????????????????Ч???????????????Ρ???????????????????????????????Щ?????????????????Windows?????????????????????????????????????.dll??.drv??.fon??????????
?????????windows??????????.lib??β??Windows??????Щ????????????????????????????
????Windows?????????????????????????????????У???????y???????????????????棬??????y??????????DLL??????y??????????????DLL????????????y??????????y???????????DLL??á?
????DLL????а???????????????????????????????DLL???????????????Σ?????????????????????????????ó?????????????????DLL??????????????????DLL?????????????DLL???????????????????????????????????DLL??????????????DLL?????е?????????????κζ??????????????????????????????????С?
??????????÷???????????????????????????÷?????????÷????
??????1?????????????????????????????????DLL????????ó???????DLLж??????Windows???????DLL???????????????????÷???????????????????????????????÷???????????????????????.LIB?????????ó????????У??????DLL?е??????????????????????????
????LIB?????????????DLL?????????????????????????????DLL????????????????????Lib???????????????????????ó????У????????DLL?????????ó????????????????????С?
??????2??????????????????÷??????????????API?????????ж??DLL????????DLL??????????????????????Ч???????棬??????????ó????????????????Windows???У??????????й???????????
?????? LoadLibrary????MFC ??AfxLoadLibrary???????????
?????? GetProcAddress??????????????????????????????????DLL????????
?????? FreeLibrary????MFC??AfxFreeLibrary??????????????
??????windows?д??????????????????????Visual C++?У????????????MFC???????C????д??DLL????????????????MFC????DLL????????DLL???????????????VC++?У?DllMain?????????????????DllMain??????????Initialization?????????Termination????????
??????
???·???
??????????????????
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