Yuav teev npe DLL li cas hauv Windows

Pin
Send
Share
Send

Cov neeg siv nug seb yuav sau npe li cas hauv cov ntaub ntawv dll hauv Windows 7 thiab 8. Feem ntau, tom qab lawv ntsib qhov yuam kev zoo li "Kev tsim haujlwm yog qhov tsis yooj yim vim tias qhov dll tsim nyog tsis muaj nyob hauv lub computer." Peb yuav tham txog qhov no.

Qhov tseeb tiag, kev cuv npe hauv lub tsev qiv ntawv hauv lub system tsis yog ib txoj haujlwm nyuaj ntawd (Kuv yuav qhia ntau npaum li peb txoj kev hloov ntawm ib txoj kev) - qhov tseeb, tsuas yog ib qib yog xav tau. Qhov tsuas yog qhov ua ntej yog tias koj muaj Windows tus thawj coj cov cai.

Txawm li cas los xij, muaj qee qhov nuances - piv txwv li, txawm tias kev ua tiav DLL sau npe tsis tas yuav cawm koj los ntawm "lub tsev qiv ntawv tsis nyob hauv lub computer" yuam kev, thiab RegSvr32 yuam kev tshwm nrog cov lus tias tus qauv tsis sib xws nrog lub Windows version ntawm lub khoos phis tawj no lossis qhov chaw nkag DLLRegisterServer tsis pom, Nws tsis txhais tau tias koj tau ua qee yam tsis raug (Kuv yuav piav qhia qhov no yuav raug piav qhia nyob rau tom kawg ntawm zaj lus no).

Peb txoj hauv kev rau npe DLL hauv OS

Piav qhia txog cov kauj ruam tom ntej, Kuv xav tias koj tau pom qhov twg koj xav luam koj lub tsev qiv ntawv thiab DLL yog twb muaj nyob hauv System32 lossis SysWOW64 nplaub tshev (thiab tej zaum lwm qhov yog tias nws yuav tsum nyob ntawd).

Nco tseg: hauv qab no peb yuav piav qhia txog yuav ua li cas sau npe DLL siv regsvr32.exe, txawm li cas los kuv kos koj lub ntsiab lus rau qhov tseeb tias yog tias koj muaj qhov 64-ntsis system, tom qab ntawd koj muaj ob lub 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 hauv System32 nplaub tshev. Kuv pom zoo kom siv tag nrho txoj kev mus rau regsvr32.exe hauv txhua txoj kev, thiab tsis yog rau cov ntaub ntawv npe, raws li kuv tau qhia hauv qhov piv txwv.

Thawj txoj kev tau piav qhia nyob rau hauv Internet ntau dua li lwm tus thiab muaj cov hauv qab no:

  • Nias Windows + R yuam sij lossis xaiv "Khiav" los ntawm lub Windows 7 Start menu (tshwj tsis yog, koj muaj nws cov zaub qhib lawm).
  • Sau regsvr32.exe kab_to_file_dll
  • Nias OK lossis Enter.

Tom qab ntawd, yog tias txhua yam ua tiav zoo, koj yuav tsum pom cov lus hais tias lub tsev qiv ntawv tau sau npe tiav. Tab sis, nrog qhov muaj feem siab koj yuav pom lwm cov lus - tus qauv tau thauj khoom, tab sis DllRegisterServer nkag kis tsis pom thiab nws tsim nyog xyuas tias koj DLL yog cov ntaub ntawv tsis raug (raws li kuv tau hais, kuv yuav sau txog qhov no tom qab).

Txoj kev thib ob yog los khiav cov kab hais kom ua tus thawj tswj hwm thiab nkag mus tib qho lus txib ntawm kab ntawv dhau los.

  • Khiav cov kab hais kom ua li Administrator. Hauv Windows 8, koj tuaj yeem nias Win + X, thiab tom qab ntawd xaiv yam khoom ntawv yam khoom noj. Hauv Windows 7, koj tuaj yeem nrhiav cov kab hais kom ua hauv Start menu, muaj txoj nyem rau nws thiab xaiv "Khiav raws li tus tswj hwm".
  • Sau hais kom ua regsvr32.exe kab_to_library_dll (ib qho piv txwv uas koj tuaj yeem pom hauv lub screenshot).

Ib zaug ntxiv, nws zoo li koj yuav tsis tuaj yeem rau npe DLL hauv cov kab ke.

Thiab cov qauv kawg, uas kuj tseem yuav pab tau qee qhov:

  • Txoj cai nyem rau ntawm DLL uas koj xav sau npe thiab xaiv cov ntawv qhia zaub mov "Qhib nrog."
  • Nyem "Xauj" thiab nrhiav cov ntaub ntawv regsvr32.exe hauv Windows / System32 lossis Windows / SysWow64, qhib DLL nrog nws.

Lub ntsiab lus ntawm txhua txoj kev tau piav qhia rau npe DLL hauv qhov system yog tib yam, tsuas yog qee txoj kev sib txawv los khiav tib cov lus txib - rau leej twg nws yooj yim dua. Thiab tam sim no hais txog vim li cas koj tsis ua tiav.

Vim li cas thiaj tsis tuaj yeem tso npe DLL

Yog li, koj tsis muaj DLL cov ntaub ntawv, uas yog vim li cas thaum koj pib qhov kev ua si lossis qhov kev zov me nyuam koj pom muaj qhov yuam kev, koj rub tawm cov ntaub ntawv no tawm hauv Is Taws Nem thiab sim sau npe, tab sis ob qho chaw nkag DllRegisterServer lossis cov qauv tsis sib xws nrog lub Windows tam sim no, thiab tej zaum lwm yam ntxiv, uas yog, tso npe DLL tsis tuaj yeem siv tau.

Vim li cas qhov no tshwm sim (tom qab no yuav hais txog yuav kho nws li cas):

  • Tsis yog tas nrho cov ntaub ntawv DLL yog tsim los rau npe. Txhawm rau nws tau rau npe nyob rau hauv txoj kev no, nws yuav tsum muaj kev txhawb nqa rau DllRegisterServer kev ua haujlwm zoo ib yam. Qee zaum qhov yuam kev kuj yog qhov tseeb vim tias lub tsev qiv ntawv twb tau rau npe.
  • Qee cov chaw xaib mus rub tawm DLLs muaj cov ntaub ntawv tsis muaj npe nrog lub npe koj tab tom nrhiav thiab tsis tuaj yeem tso npe, vim qhov no tsis yog lub tsev qiv ntawv.

Thiab tam sim no txog yuav kho nws li cas:

  • Yog tias koj yog tus tsim tawm thiab cuv npe koj lub DLL, sim ua regasm.exe
  • Yog tias koj yog tus siv thiab ib yam tsis pib nrog cov lus uas DLL ploj lawm hauv koj lub computer, saib hauv Is Taws Nem seb qhov ntawv yog dab tsi thiab tsis nyob qhov twg mus rub nws. Feem ntau, paub txog qhov no, koj tuaj yeem rub tawm cov nom installer, uas yuav teeb tsa lub qub chaw qiv ntawv thiab sau npe rau hauv qhov system - piv txwv li, rau txhua cov ntaub ntawv nrog lub npe pib nrog d3d, tsuas yog nruab DirectX los ntawm Microsoft lub vev xaib, rau msvc - ib qho ntawm cov khoos kas ntawm Visual Studio Redistributable. (Thiab yog tias qee qhov kev ua si tsis tau pib los ntawm torrent, tom qab saib cov ntawv qhia antivirus, nws tuaj yeem rho tawm qhov tsim nyog DLLs, qhov no feem ntau tshwm sim nrog qee lub tsev qiv ntawv hloov kho).
  • Feem ntau, es tsis txhob rau npe DLL, qhov kev tso kawm ntawm cov ntawv hauv tib lub tais nrog cov exe executable cov ntaub ntawv uas xav kom lub tsev qiv ntawv no txhais.

Kuv xaus lus rau qhov no, Kuv vam tias ib yam dab tsi tau ua kom pom tseeb dua li nws tau muaj.

Pin
Send
Share
Send