Pehea e hoʻopaʻa inoa ai i DLL ma Windows

E nīnau ana nā mea hoʻohana i keʻano o ka hoʻopaʻa inoaʻana i ka file dll ma ka Windows 7 a 8. Ma ka manawa maʻamau, ma hope o kaʻikeʻana i nā pilikia e like me "ʻAʻole hiki ke hoʻomaka i ka polokalamu, no ka meaʻaʻole i pono ka dll pono ma ka kamepiula." No kēia a kamaʻilio.

ʻO kaʻoiaʻiʻo,ʻo ka hoʻopaʻa inoaʻana i ka hale waihona i loko o ke keleponaʻaʻole ia he hana paʻakikī (e hōʻike wau i nāʻanoʻekolu o nāʻano o keʻano hoʻokahi) -ʻo kaʻoiaʻiʻo, hoʻokahi wale nō kūlana e pono. ʻO ka mea wale nō e koiʻia ana he aia nā kuleana o nā luna hoʻoponopono Windows.

Eia kekahi mau nuances - no ka laʻana,ʻo ka hōʻailona kūlana o ka DLLʻaʻole ia e mālama iāʻoe mai kahi waihona o ka waihona punahele ma ka kamepiula, a me kaʻikeʻana o ka hewa RegSv32 me kaʻelele iʻole e like me kēia pūnaewele me ka Windows version ma kēia kamepiula aʻaʻole i loaʻa kahi helu helu DLLRegisterServer. ʻAʻole ia heʻano hana hewa pahaʻoe (e wehewehe au i kēia ma ka hope o ka paukū).

ʻEkolu mauʻano e kākau ai i ka DLL ma ka OS

Ke ho'ākāka nei i nā kaupae hou, ke manaʻo nei au ua loaʻa iāʻoe kahi e pono aiʻoe e kope i kāu waihona a aia ka DLL i loko o ka pūnaewele System32 a iʻole SysWOW64 (a inā paha ma kahi'ē aʻe, ināʻo ia ma laila).

Nānā: ma lalo nei e wehewehe i ka hoʻopaʻaʻana i ka waihona DLL ma o regsvr32.exe, akā, ke kahaki nei au i kou manaʻo i kaʻike inā inā he 64-bit pūnaehana kāu,ʻelua regsvr32.exe - hoʻokahi i loko o ka waihona C: Windows SysWOW64 ʻo ka lua o C: Windows System32. A he mau mea like kēia me nā 64-bit i loko o ka pūnaewele System32. Ke hāpai nei au i ka hoʻohanaʻana i ke ala piha i regsvr32.exe ma nāʻano likeʻole,ʻaʻole wale i ka inoa kōnae wale nō, e like me kaʻu i hōʻike ai i nā hiʻohiʻona.

ʻO ka papahana mua e hōʻikeʻia ma ka pūnaewele ma mua o nā mea'ē aʻe a eia nā mea penei:

  • E kaomi i nā kī Windows + R a iʻole koho i ka koho Run in the menu Windows 7 Start (inā,ʻoiaʻiʻo, ua hiki iāʻoe ke hōʻike).
  • E komo regsvr32.exe kahua_to_file_dll
  • Kaomi OK a iʻole E komo.

Ma hope iho, inā ua maikaʻi nā mea a pau, ponoʻoe eʻike i ka memo i hoʻopaʻa inoaʻia ka hale waihona. Akā, me kahi kūlana kiʻekiʻe eʻikeʻoe i kekahi leka hou - ua kāohiʻia ka Module, akāʻaʻole i loaʻa ka helu helu DllRegisterServer a ua pono ke nānāʻana i kāu DLL ka hua pololei (e kākau wau e pili ana i kēia ma hope).

ʻO kaʻaoʻaoʻelua,ʻo ia ke holo i ke laina kauoha e like me ke luna hoʻoponopono a hoʻokomo i kēlā kauoha likeʻole mai ka mea i hala.

  • E holo i ka kauoha kauoha e like me Luna. Ma ka Windows 8, hiki iāʻoe ke kāomi i nā kī Win + X a laila koho i ka mea koho menu. I ka Windows 7, hiki iāʻoe keʻike i kahi laina kauoha ma ka hoʻomaka menu, e kaomi'ākau ma luna o ia mea a laila koho "E holo ma keʻano hoʻoponopono".
  • E komo i ke kauoha regsvr32.exe alakaudll (hiki iāʻoe keʻike i kekahi hiʻohiʻona i ka palihi).

Eia hou,ʻaʻole paha e hiki iāʻoe ke hoʻopaʻa inoa i ka DLL ma ka pūnaewele.

Aʻo keʻano hope loa, hiki ke hoʻohanaʻia i kekahi mau mea:

  • E kaomi pono i ka DLL āu e makemake ai e hoʻopaʻa inoa ae koho i kahi koho "Open with."
  • E kaomi iā "Browse" aʻike i ka file regsvr32.exe ma ka waihona Windows / System32 a iʻole Windows / SysWow64, wehe i ka DLL me ka hoʻohanaʻana.

ʻO ke kumu o nāʻaoʻao i ho'ākākaʻia e hoʻopaʻa inoa i kahi DLL ma ka pūnaewele he like ia, he mauʻano likeʻole wale nō e holo i ke kauoha hoʻokahi -ʻo ia ka mea maʻalahi no kekahi. A no laila,ʻaʻole hiki iāʻoe ke hana i kekahi mea.

No ke aha e hikiʻole ke hoʻopaʻa inoa DLL

No laila,ʻaʻoleʻoe i kahi faile DLL, no kaʻike āu i ke kuhi i ka hoʻomakaʻana o ka pāʻani a iʻole ka papahana, ua laweʻoe i kēia faila mai ka Pūnaewele a ho'āʻo e hoʻopaʻa, akā naʻe,ʻaʻole ka mea komo DllRegisterServer a iʻole ka papahana o kēia pūnaewele me ka mana o Windows, Malia paha he mea'ē aʻe,ʻo ia hoʻi, DLL hikiʻole ke kākau inoa.

No ke aha e hana ai (ma hope nei, a me pehea e hoʻoponopono ai):

  • ʻAʻole i paʻiʻia nā faila DLL e hoʻopaʻa inoaʻia. I mea e pono ai ke kākau inoaʻia i kēiaʻano, pono iā ia ke kākoʻo no ka hana DllRegisterServer pono'ī. I kekahi manawa ua hanaʻia kekahi hewa ma kaʻikeʻana ua hoʻopaʻa inoaʻia ka hale waihona puke.
  • ʻO kekahi mau pūnaewele e hāʻawi ana i kahi DLL,ʻoiaʻiʻo, aia nā waihona me nā inoa me ka inoa āu eʻimi nei aʻaʻole hiki ke hoʻopaʻa inoaʻia, no ka mea,ʻoiaʻiʻo,ʻaʻole kēia he waihona.

A penei pehea e hoʻoponopono ai:

  • Inā he polokalamu polokalamuʻoe a hoʻopaʻa i kāu DLL, e ho'āʻo hou i regasm.exe
  • Ināʻoe he mea hoʻohana aʻaʻoleʻoe e hoʻomaka i kekahi mea me kahi hua'ōlelo e hōʻike anaʻaʻole ka DLL ma ka kamepiula, e huli i ka Pūnaewele no kaʻano o ka faile aʻaʻole hoʻi kahi e lawe ai iā ia. I kēiaʻikeʻana i kēia, hiki iāʻoe ke hoʻomaopopo pinepine i ka pūnaewele hoʻonohonoho i hoʻonohonoho i nā waihona hale waihona puke a hoʻomanaʻo iā lākou i loko o ka pūnaewele - no ka mea, no nā kōnae a pau me ka inoa e hoʻomaka me ka d3d, e hoʻokomo i DirectX mai ka pūnaewele official Microsoft, no msvc, hoʻokahi o nāʻano o Visual Studio Redistributable. (A ināʻaʻole i hoʻomaka kahi pāʻani mai ke kahawai mai, a laila e nānā i nā hōʻike o ka polokalamuʻokoʻa, hiki iā ia ke wehe i ka DLL pono, kū pinepine me kekahi mau hale waihona puke i hoʻololiʻia).
  • I ka manawa maʻamau, ma kahi o ka hoʻopaʻa inoaʻana i ka DLL, kahi o ka faila i loko o ka waihona pūnaewele e like me ke faila exe executable e koi ana i kēia waihona e hoʻonāukiʻia.

I kēia hopena, ke manaʻo nei au ua lilo i kekahi mea i maʻalahi ma mua o ka mea.