Masu amfani suna tambaya game da yadda za a yi rajistar fayil din dll ɗin a cikin Windows 7 da 8. Kullum, bayan sun fuskanci kurakurai kamar "Ba za'a iya fara shirin ba, saboda dll ba dole ba ne akan kwamfutar." Game da wannan kuma magana.
A gaskiya ma, rijista ɗakin karatu a cikin tsarin ba aiki ne mai wuyar ba (zan nuna yawancin sau uku na hanyar daya) - a gaskiya ma, mataki daya ne kawai dole. Abinda ake bukata shi ne cewa kana da haƙƙin mallaka na Windows.
Duk da haka, akwai wasu nuances - alal misali, har ma da rajista na DLL ba dole ba ne ya ceci ku daga ɗakin ɗakin karatu ba daidai ba kuskure, kuma bayyanar kuskuren RegSvr32 tare da sakon cewa ɗayan bai dace tare da Windows version a kan wannan kwamfutar ba ko aka samo wurin shigarwa DLLRegisterServer Ba yana nufin cewa kuna yin wani abu ba daidai ba (zan bayyana wannan a ƙarshen labarin).
Hanyoyi uku don yin rajistar DLL a OS
Da yake bayanin matakai na gaba, ina tsammanin cewa ka sami inda kake buƙatar kwafin ɗakunan karatunka kuma DLL ya rigaya a cikin fayil na System32 ko SysWOW64 (kuma watakila a wani wuri kuma, idan ya kasance a can).
Lura: da ke ƙasa za su bayyana yadda za a yi rajistar ɗakin karatu na DLL ta amfani da regsvr32.exe, duk da haka, na kusantar da hankali ga gaskiyar cewa idan kana da tsarin 64-bit, to kana da guda biyu regsvr32.exe - daya cikin babban fayil C: Windows SysWOW64 na biyu shine C: Windows System32. Kuma waɗannan su ne fayiloli daban-daban, tare da 64-bit dake cikin babban fayil na System32. Ina bayar da shawarar yin amfani da cikakken hanyar zuwa regsvr32.exe a kowane hanyar, kuma ba kawai sunan fayil ba, kamar yadda na nuna a misalan.
Hanyar farko an bayyana akan Intanet sau da yawa fiye da wasu kuma ya ƙunshi waɗannan masu zuwa:
- Latsa maɓallin Windows + R ko zaɓi Zaɓin Run a cikin Windows 7 Fara menu (idan, hakika, kun kunna nuni).
- Shigar regsvr32.Exe hanya_to_file_dll
- Danna Ok ko Shigar.
Bayan haka, idan duk abin ya faru, ya kamata ka ga sakon da aka yi rajistar ɗakin ɗakin karatu. Amma, tare da babban yiwuwar za ku ga wani sako - ana ƙaddamar da Module, amma ba a samo asalin DllRegisterServer ba kuma yana da kyau a duba cewa DLL din din din daidai ne (zan rubuta game da wannan daga bisani).
Hanya na biyu ita ce gudanar da layin umarni a matsayin mai gudanarwa kuma shigar da umarnin daya daga abin da aka gabata.
- Gudun umarni a matsayin Gwamna. A cikin Windows 8, za ka iya danna maɓallin Win + X sannan ka zaɓa abin da ake so. A cikin Windows 7, zaka iya samun layin umarni a cikin Fara menu, danna dama a kan shi kuma zaɓi "Gudura a matsayin mai gudanarwa".
- Shigar da umurnin regsvr32.Exe hanya_to_library_dll (za ka iya ganin misali a cikin hotunan hoto).
Bugu da ƙari, bazai iya yin rajistar DLL a cikin tsarin ba.
Kuma hanyar ƙarshe, wanda kuma zai iya zama da amfani a wasu lokuta:
- Danna-dama a kan DLL da kake so ka yi rajistar kuma zaɓi abin da ke menu "Buɗe tare da."
- Click "Browse" kuma sami fayil regsvr32.exe a cikin babban fayil na Windows / System32 ko Windows / SysWow64, bude DLL ta amfani da shi.
Jigon dukan hanyoyi da aka bayyana don yin rajistar DLL a tsarin shine iri ɗaya, kawai wasu hanyoyi daban-daban don gudana wannan umurni - wanda yafi dacewa da wani. Kuma a yanzu game da dalilin da yasa baka iya yin wani abu ba.
Me ya sa ba zai iya rajistar DLL ba?
Saboda haka, ba ku da wani fayil din DLL, saboda abin da kuka ga kuskure lokacin fara wasan ko shirin, kun sauke wannan fayil daga Intanit kuma ya yi kokarin rajista, amma ko dai DllRegisterServer shigarwa ko shigarwar bai dace tare da halin yanzu na Windows ba, kuma watakila wani abu dabam, wato, DLL rajista ba zai yiwu ba.
Me ya sa wannan ya faru (bayan haka, da yadda za a gyara shi):
- Ba dukkan fayilolin DLL an tsara don a rijista ba. Domin a rubuta shi ta wannan hanya, dole ne ya sami goyon baya ga aikin DllRegisterServer kanta. Wani lokaci kuma kuskure ya haifar da gaskiyar cewa an riga an rajista ɗakin library.
- Wasu shafukan da ke ba da damar sauke DLL, a gaskiya, sun ƙunshi fayilolin ɓoye tare da sunan da kake nema kuma ba za a iya rajista ba, domin a gaskiya wannan ba ɗakin ɗakin karatu ba ne.
Kuma yanzu yadda za a gyara shi:
- Idan kun kasance mai shiryawa kuma ku yi rajistar DLL, gwada regasm.exe
- Idan kai mai amfani ne kuma ba ka fara wani abu da sakon da ke nuna cewa DLL ba a kan kwamfutar ba, bincika Intanit don irin irin fayil ɗin da yake kuma ba inda zaka sauke shi ba. Sanin wannan, zaka iya saukewa da mai sakawa na ma'aikaci wanda ya kafa ɗakunan karatu na asali kuma ya rajista su a cikin tsarin - alal misali, ga dukkan fayilolin da suna farawa tare da d3d, kawai saka DirectX daga shafin yanar gizon Microsoft, don msvc, ɗaya daga cikin fasali na Kayayyakin aikin hurumin Rediyo. (Kuma idan wasan bai fara daga torrent ba, sa'an nan kuma duba cikin rahotanni na riga-kafi, zai iya cire DLL mai bukata, sau da yawa yakan faru da wasu ɗakunan karatu).
- Yawancin lokaci, maimakon yin rijistar DLL, wurin da fayil ɗin yake a cikin babban fayil ɗin shine fayil din exe wanda yake buƙatar wannan ɗakin karatu yana jawo.
A karshen wannan, ina fata wani abu ya zama ya fi kyau fiye da yadda yake.