Regsvr32: Nws Yog Dab Tsi & Yuav Sau Npe DLLs li cas

Cov txheej txheem:

Regsvr32: Nws Yog Dab Tsi & Yuav Sau Npe DLLs li cas
Regsvr32: Nws Yog Dab Tsi & Yuav Sau Npe DLLs li cas
Anonim

Yuav Paub

  • Txhawm rau sau npe DLL cov ntaub ntawv myfile.dll, nkag mus regsvr32 myfile.dll, thiab txhawm rau tshem tawm nws, ntaus r egsvr32 /u myfile.dllrau hauv kab hais kom ua.
  • Yog tias koj tau txais qhov yuam kev thaum sim sau npe DLL cov ntaub ntawv, koj yuav tsis muaj kev tso cai raug lossis cov ntaub ntawv yuav raug thaiv.
  • Lwm yam yuam kev yuav yog vim tsis muaj kev vam khom; yog tias muaj, siv Dependency Walker kom pom txhua qhov kev cia siab ntawm DLL cov ntaub ntawv xav tau.

Kab lus no piav qhia yuav ua li cas siv regsvr32 cov cuab yeej hais kom ua kab hauv Windows thiab yuav ua li cas kho qee qhov yuam kev regsvr32. Regsvr32 yog siv los sau npe thiab tsis sau npe Cov Khoom Txuas thiab Kev Sib Txuas (OLE) tswj, zoo li DLL cov ntaub ntawv thiab ActiveX Control. OCX cov ntaub ntawv. Tej zaum koj yuav tau sau npe DLL cov ntaub ntawv yog tias koj pom DLL yuam kev ntawm koj lub computer.

Yuav Sau Npe thiab Tsis Sau Npe DLL Cov Ntaub Ntawv

Yog tias cov lus qhia hauv Windows Registry uas xa mus rau DLL cov ntaub ntawv raug tshem tawm lossis ua tsis raug, cov kev pab cuam uas xav siv cov ntaub ntawv DLL yuav tsum tsis ua haujlwm. Nws yog thaum lub koom haum no nrog rau kev sau npe tawg uas yuav tsum tau sau npe DLL cov ntaub ntawv.

Registering a DLL file feem ntau ua tiav los ntawm kev rov nruab qhov program uas tau sau npe rau thawj qhov chaw. Qee zaum, txawm li cas los xij, tej zaum koj yuav tau sau npe DLL cov ntaub ntawv koj tus kheej manually ntawm Command Prompt.

Saib peb cov lus qhia yuav ua li cas qhib Command Prompt yog tias koj tsis paub meej yuav nrhiav tau li cas.

Nov yog txoj hauv kev kom raug regsvr32 hais kom ua:


regsvr32 [/u] [/n] [/i[:cmdline]

Piv txwv li, koj yuav nkag mus rau thawj cov lus txib no los sau npe DLL cov ntaub ntawv npe hu ua myfile.dll, lossis qhov thib ob kom tshem tawm nws:


regsvr32 myfile.dll

regsvr32 /u myfile.dll

Image
Image

Tsis yog tag nrho DLLs tuaj yeem sau npe los ntawm kev nkag mus rau cov lus txib saum toj no rau hauv Command Prompt. Tej zaum koj yuav tsum xub kaw qhov kev pabcuam lossis cov haujlwm uas siv cov ntaub ntawv.

Yuav ua li cas kho qhov yuam kev Regsvr32

Ntawm no yog ib qho yuam kev koj yuav pom thaum sim sau npe DLL cov ntaub ntawv:


Lub module tau thauj khoom tab sis hu rau DllRegisterServer ua tsis tiav nrog tus lej yuam kev 0x80070005.

Qhov no feem ntau yog qhov teeb meem kev tso cai. Yog tias khiav qhov kev hais kom siab siab tseem tsis tso cai rau koj sau npe DLL cov ntaub ntawv, cov ntaub ntawv nws tus kheej yuav raug thaiv. Txheeb xyuas ntu Kev Ruaj Ntseg ntawm General tab nyob rau hauv cov ntaub ntawv lub qhov rais Properties.

Lwm qhov teeb meem tuaj yeem yog tias koj tsis muaj kev tso cai kom raug siv cov ntaub ntawv.

Ib yam lus yuam kev zoo sib xws yog lo lus zoo li hauv qab no. Qhov yuam kev no feem ntau txhais tau tias DLL tsis raug siv los ua COM DLL rau ib daim ntawv thov hauv computer, uas txhais tau tias tsis tas yuav sau npe rau nws.


Lub module tau thauj khoom tab sis tsis pom qhov nkag-point DllRegisterServer.

Ntawm no yog lwm regsvr32 lus yuam kev:


Lub module ua tsis tiav. Xyuas kom tseeb tias cov binary khaws cia ntawm txoj hauv kev los yog debug nws los xyuas cov teeb meem nrog cov ntaub ntawv binary lossis dependent. DLL. Nrhiav tsis pom lub module tshwj xeeb.

Image
Image

Qhov kev ua yuam kev tshwj xeeb no yuav yog vim qhov kev cia siab ploj lawm, qhov twg koj tuaj yeem siv Dependency Walker kom pom cov npe ntawm txhua qhov kev cia siab uas DLL cov ntaub ntawv xav tau, raws li ib qho yuav ploj lawm uas koj yuav tsum muaj nyob rau hauv kev txiav txim. rau DLL sau npe kom raug.

Tsis tas li, nco ntsoov tias txoj hauv kev mus rau DLL cov ntaub ntawv raug sau raug. Lub syntax ntawm cov lus txib tseem ceeb heev; Qhov yuam kev yuav raug muab pov tseg yog tias nws nkag tsis raug.

Qee DLL cov ntaub ntawv yuav tsum muaj lawv qhov chaw nyob ib puag ncig hauv cov lus zoo li no:


"C:\Users\Admin User\Programs\myfile.dll"

Regsvr32.exe nyob qhov twg?

32-ntsis versions ntawm Windows (XP thiab tshiab dua) ntxiv Microsoft Register Server cuab tam rau lub nplaub tshev no thaum Windows tau xub ntsia: %systemroot%\System32\.

64-ntsis versions ntawm Windows khaws cov ntaub ntawv regsvr32.exe tsis tsuas yog muaj, tab sis kuj nyob ntawm no: %systemroot%\SysWoW64\.

Pom zoo: