Ogwiritsira ntchito akufunsa za momwe mungalembere fayiloyi pa Windows 7 ndi 8. Kawirikawiri, mutakumana ndi zolakwika monga "Pulogalamuyi sitingayambe, chifukwa dll yofunikira siikompyuta." Za izi ndikuyankhula.
Ndipotu, kulemba laibulale m'dongosolo si ntchito yovuta kwambiri (Ine ndiwonetsa zochuluka zosiyana zitatu). Ndipotu, sitepe imodzi yokha ndiyofunika. Chofunika chokha ndichoti muli ndi ufulu woweruza Windows.
Komabe, pali maonekedwe ena - mwachitsanzo, ngakhale kulembetsa bwino DLL sikukutetezani ku kulakwitsa kwaibulale kulipiritsi, ndi maonekedwe a RegSvr32 ndi uthenga kuti gawoli siligwirizana ndi mawindo a Windows pa kompyuta kapena DLLRegisterServer malo osalowa sanapezeke Sichikutanthauza kuti mukuchita chinachake cholakwika (Ndikufotokozera izi kumapeto kwa nkhaniyi).
Njira zitatu zolembera DLL mu OS
Pofotokoza masitepe otsatirawa, ndikuganiza kuti mwapeza kumene mukufuna kukopera laibulale yanu ndipo DLL ili kale mu foda ya System32 kapena SysWOW64 (ndipo mwina kwinakwake, ngati iyenera kukhalapo).
Zindikirani: m'munsimu mufotokoze momwe mungalembetsere laibulale ya DLL pogwiritsa ntchito regsvr32.exe, komabe, ndikuwonetsa kuti ngati muli ndi 64-bit system, ndiye kuti muli regsvr32.exe awiri - mu foda C: Windows SysWOW64 yachiwiri ndi C: Windows System32. Ndipo awa ndi owona osiyana, ndi 64-bit omwe ali mu foda ya System32. Ndikupangira kugwiritsa ntchito njira yonse ya regsvr32.exe m'njira iliyonse, osati chabe dzina la fayilo, monga ndasonyezera zitsanzo.
Njira yoyamba ikufotokozedwa pa intaneti nthawi zambiri kuposa ena ndipo ili ndi zotsatirazi:
- Dinani makiyi a Windows + R kapena sankhani Njira yothamanga mu Windows 7 Yambani mndandanda (ngati, mwachidziwikire, mwawathandiza kuwonetsera).
- Lowani regsvr32.exe path_to_file_dll
- Dinani Kulungani kapena Lowani.
Pambuyo pake, ngati zinthu zonse zikuyenda bwino, muyenera kuwona uthenga umene laibulale ikulembetsedwa bwino. Koma, mwakuya mwakuya mudzawona uthenga wina - Module yanyamula, koma malo olowera DllRegisterServer sanapezeke ndipo nkoyenera kuwona kuti DLL yanu ndi fayilo yoyenera (Ndikulemba za izi mtsogolo).
Njira yachiwiri ndiyo kuyendetsa mzere wa malamulo monga woyang'anira ndikulowa lamulo lomwelo kuchokera ku chinthu chapitalo.
- Kuthamangitsani lamulo lotsogolera monga Woyang'anira. Mu Windows 8, mukhoza kusindikiza makiyi a Win + X ndikusankha chinthu chofunika cha menyu. Mu Windows 7, mungapeze mzere wa malamulo muyambidwe Yoyamba, dinani pomwepo ndikusankha "Kuthamanga monga woyang'anira".
- Lowani lamulo regsvr32.exe path_to_library_dll (mukhoza kuona chitsanzo mu skrini).
Apanso, nkutheka kuti simungathe kulemba DLL m'dongosolo.
Ndipo njira yotsiriza, yomwe ingathandizenso nthawi zina:
- Dinani pa DLL yomwe mukufuna kulembetsa ndi kusankha chinthu cha menyu "Tsegulani ndi."
- Dinani "Fufuzani" ndipo mupeze fayilo regsvr32.exe mu foda ya Windows / System32 kapena Windows / SysWow64, mutsegule DLL kugwiritsa ntchito.
Chofunika cha njira zonse zofotokozera DLL mu dongosolo ndi chimodzimodzi, njira zingapo zosiyana zogwiritsira ntchito lamulo lomwelo - lomwe ndi loyenera kwa wina. Ndipo tsopano chifukwa chake simungathe kuchita chirichonse.
Bwanji osakhoza kulemba DLL
Kotero, mulibe fayilo la DLL, chifukwa cha zomwe mukuwona polakwika pamene mukuyamba masewera kapena pulogalamu, mumasula fayiloyi kuchokera pa intaneti ndi kuyesa kulembetsa, koma mwina DLRegisterServer tsamba lolowera kapena gawolo siligwirizana ndi mawonekedwe a Windows, ndipo mwina china chake, ndiko kuti, DLL kulembetsa sikungatheke.
Chifukwa chake izi zimachitika (pambuyo apa, ndi momwe angakonzere):
- Sikuti mafayilo onse a DLL apangidwa kuti alembe. Kuti izo zilembedwe mwanjira iyi, ziyenera kukhala ndi chithandizo kwa DllRegisterServer ikugwira ntchito yokha. Nthawi zina zolakwika zimayambanso chifukwa chakuti laibulale ili kale kulembedwa.
- Mawebusaiti ena omwe amapereka DLL, ali ndi ma fayilo omwe ali ndi dzina limene mukulifuna ndipo sangathe kulembedwa, chifukwa kwenikweni izi sizomwe zilili.
Ndipo tsopano momwe mungakonzekere:
- Ngati ndinu wolemba mapulogalamu ndikulembetsa DLL yanu, yesani regasm.exe
- Ngati ndinu wosuta ndipo simukuyambitsa chinachake ndi uthenga wonena kuti DLL sali pamakompyuta, fufuzani pa intaneti kuti ndi mtundu wanji wa fayilo komanso kuti mungapeze pati. Podziwa izi, nthawi zambiri mumangokhalira kukopera ovomerezeka omwe amayambitsa makalata oyambirira ndikuwalembetsa m'dongosolo - mwachitsanzo, kwa mafayilo omwe ali ndi dzina kuyambira d3d, ingoikani DirectX kuchokera ku webusaiti ya Microsoft, pa msvc, limodzi la Visual Studio Redistributable. (Ndipo ngati masewera sakuyambira pa mtsinje, yang'anani mu mauthenga a antivayirasi, akhoza kuchotsa DLL yofunikira, nthawi zambiri zimachitika ndi makalata ena osinthidwa).
- Kawirikawiri, mmalo molembetsa DLL, malo a fayilo mu foda yomweyi monga fayi yomwe imayesedwa yomwe imafuna kuti laibulaleyi iwonedwe.
Pamapeto pake, ndikuyembekeza kuti chinachake chakhala chowonekera kwambiri kuposa momwe chinalili.