Cov neeg siv nug txog kev sau npe ntawm dll cov ntaub ntawv nyob rau hauv Windows 7 thiab 8. Feem ntau, tom qab raug teeb meem xws li "Qhov kev pab cuam tsis tau pib, vim qhov tsim nyog dll tsis nyob hauv lub computer." Hais txog qhov no thiab tham.
Qhov tseeb, kev sau npe ntawm lub tsev qiv ntawv hauv ib qho tsis yog ib qho haujlwm nyuaj (kuv yuav ua kom ntau li peb txoj kev hloov ntawm ib txoj kev) - qhov tseeb, tsuas yog ib kauj ruam xwb. Qhov tsuas yog tseev kom muaj yog tias koj muaj cai tswj hwm lub qhov rais.
Txawm li cas los xij, muaj qee lub luag haujlwm - piv txwv li, kev sau npe zoo tshaj ntawm DLL tsis tas yuav cawm koj ntawm lub chaw qiv ntawv yuam kev hauv lub computer, thiab qhov pom ntawm RegSvr32 yuam kev nrog cov lus hais tias lub xovtooj tsis sib npaug ntawm Windows lub computer lossis lub DLLRegisterServer nkag mus. Nws tsis txhais hais tias koj ua tej yam tsis yog lawm (kuv yuav piav qhia qhov no nyob rau tom kawg ntawm tsab xov xwm).
Peb txoj hauv kev rau npe rau DLL hauv OS
Hais txog cov kauj ruam tom ntej, kuv xav tias koj tau pom qhov twg koj xav luam koj lub tsev qiv ntawv thiab DLL twb nyob hauv System32 lossis SysWOW64 ceev (thiab tej zaum lwm qhov, yog tias nws yuav tsum muaj).
Lus cim: hauv qab no yuav piav qhia yuav ua li cas rau npe DLL lub tsev qiv ntawv siv regsvr32.exe, txawm li ntawd los, kuv kos koj cov xim rau lub fact tias yog koj muaj 64-ntsis, ces koj muaj ob regsvr32.exe - ib qho hauv daim nplaub tshev C: Windows SysWOW64 Qhov thib ob yog C: Windows System32. Thiab cov no yog cov ntaub ntawv sib txawv, nrog 64-ntsis nyob rau hauv System32 sis. Kuv xav kom siv tag nrho txoj kev mus rau regsvr32.exe nyob rau hauv txhua txoj kev, thiab tsis yog cov ntaub ntawv lub npe, raws li kuv tau qhia hauv cov qauv no.
Thawj txoj kev piav qhia hauv Internet ntau dua lwm tus thiab muaj cov hauv qab no:
- Nias lub khawm hauv Windows + R los sis xaiv qhov kev xaiv qhib hauv Windows 7 Start zaub mov (yog tias, tau kawg, koj tau tso cai rau nws cov duab).
- Sau regsvr32.exe path_to_file_dll
- Nias OK lossis Sau.
Tom qab ntawd, yog txhua yam tau zoo, koj yuav tsum pom cov lus hais tias lub tsev qiv ntawv tau txais kev pabcuam zoo. Tab sis, nrog rau qhov siab yuav koj pom lwm cov lus - qhov kev hloov hauv cov module no, tab sis nkag kis DllRegisterServer tsis tau pom thiab nws tsim nyog xyuas tias koj DLL yog qhov tseeb cov ntaub ntawv (Kuv mam li sau txog qhov no tom qab).
Qhov thib ob yog khiav ntawm kab lus hais ua tus thawj coj thiab nkag rau tib lo lus txib los ntawm cov khoom yav dhau los.
- Khiav cov lus qhia kom sai raws li Thawj Tswj Hwm. Hauv qhov rais 8, koj tuaj yeem nias qhov Yeej + X tus yuam sij thiab tom qab ntawd ces xaiv yam khoom ntawd. Nyob rau hauv Windows 7, koj tuaj yeem pom cov lus hais ua kab nyob rau hauv Start menu, right-click rau nws thiab xaiv "Khiav li tus neeg khiav dej num".
- Sau cov lus txib regsvr32.exe path_to_library_dll (koj tuaj yeem pom tus piv txwv hauv lub screenshot).
Ntxiv dua thiab, nws yuav ua rau koj tsis tuaj yeem sau npe rau DLL hauv lub cev.
Thiab lub xeem txoj kev, uas muaj peev xwm tseem yuav pab tau qee qhov:
- Txoj cai-nias rau ntawm DLL uas koj xav sau npe thiab xaiv lub tshuab raj "Qhib nrog."
- Nyem "Xauj" thiab nrhiav tau cov ntaub ntawv regsvr32.exe hauv Windows / System32 lossis Windows / SysWow64 nplaub tshev, qhib DLL siv nws.
Tus essence ntawm tag nrho cov kev piav txog kev sau npe DLL nyob rau hauv lub cev yog tib yam, tsuas yog ob peb hom kev khiav cov lus txib tib - uas yog yooj yim dua rau ib tug neeg. Thiab tam sim no txog vim li cas koj ua tsis tau dab tsi.
Vim li cas thiaj tsis tuaj koom DLL
Yog li, koj tsis muaj cov ntaub ntawv DLL, vim li cas koj pom ib qho kev ua yuam kev thaum pib qhov kev ua si los yog kev pab cuam, koj downloaded cov ntaub ntawv no hauv Internet thiab sim mus sau npe, tab sis qhov DllRegisterServer qhov nkag los yog lub module tsis tau tshaj qhov tam sim no version ntawm qhov rais, thiab tej zaum lwm yam, uas yog, DLL registration yog tsis yooj yim sua.
Vim li cas qhov no tshwm sim (ntxiv mus, thiab yuav kho nws li cas):
- Tsis yog txhua txhua cov ntaub ntawv DLL raug tsim los ua tus sau npe. Hauv kev txiav txim rau nws yuav tsum tau sau npe nyob rau hauv no txoj kev, nws yuav tsum muaj kev them nyiaj yug rau lub DllRegisterServer kev ua haujlwm nws tus kheej. Qee zaum ib qho yuam kev kuj yog los ntawm qhov tseeb tias lub tsev qiv ntawv twb tau sau npe lawm.
- Qee qhov chaw uas muab rau DLL, qhov tseeb, muaj cov ntaub ntawv dummy nrog lub npe koj tab tom nrhiav thiab tsis tuaj yeem sau npe, vim qhov tseeb no tsis yog lub tsev qiv ntawv.
Thiab tam sim no yuav ua li cas kho nws:
- Yog tias koj yog tus programmer thiab sau koj DLL, sim regasm.exe
- Yog tias koj yog ib tug neeg siv thiab koj tsis tau pib ib yam dab tsi nrog cov lus hais tias DLL tsis nyob hauv lub computer, tshawb hauv Internet rau hom ntaub ntawv nws yog dab tsi thiab tsis yog qhov twg los mus download tau nws. Kev paub txog qhov no, koj tuaj yeem download tau lub nruab installer uas yog nruab rau cov tsev qiv ntawv qub thiab sau npe rau hauv qhov system - piv txwv li, rau tag nrho cov ntaub ntawv nrog lub npe pib nrog d3d, cia li muab DirectX los ntawm lub Microsoft lub website, rau msvc, ib lub versions of Visual Studio Redistributable. (Thiab yog hais tias kev ua si tsis pib los ntawm ib tug torrent, ces saib mus rau hauv cov ntawv ceeb toom ntawm lub antivirus, nws yuav tshem tawm qhov tsim nyog DLL, nws feem ntau tshwm sim nrog qee lub qiv hloov lawm).
- Feem ntau, tsis yog sau npe rau DLL, qhov chaw ntawm cov ntaub ntawv nyob rau hauv tib lub nplaub tshev li tus executable exe cov ntaub ntawv uas yuav tsum muaj cov ntaub ntawv no yog cuab.
Ntawm no kawg, kuv vam tias muaj ib yam dab tsi los ua ntau tshaj qhov tseeb.