Mar
11th

Register DLL files in Windows Explorer

Files under Installation, Tutorials | Posted by MrDBA

ကိုယ့္ Program မွာတြဲသံုးဖို႔ Third party Dll file ေတြကို Register လုပ္ရန္အတြက္ DOS Mode ကေနသြားသြားလုပ္ေနရတာ တစ္ခါတစ္ခါ command ေမ့ေနရင္တို႔၊ ေနာက္က parameter ေမ့ေနရင္တို႔ သိပ္အလုပ္မတြင္လွဘူးေပါ့ .. ဒီေတာ့ DLL File ေလးကို mouse နဲ႔ Right click ေခါက္ ၊ ေပၚလာတဲ့ menu မွာေရြးျပီး Register လုပ္လို႔ရရင္ ေကာင္းမွာေပါ့ဗ်ာ၊

 Registry မွာ နဲနဲ ျပင္ေပးလိုက္ယံုနဲ႔ menu ေလးေပၚလာမယ္ဗ်ား … တဆင့္ျခင္းစီကေတာ့ ဒီလိုပါ.

လိုျခင္တာက Registry မွာဒီလို ေဆာက္ျခင္တယ္ .. ပထမဆံုး Run box ကေန Regedt32 လို႔ရိုက္ Enter ေခါက္ (သို႔) OK ကို click ေခါက္ပါ။

 cmd.GIF

Registry Editor ေပၚလာရင္ HKEY_CLASSES_ROOT ကိုသြားပါ၊

 classroot.GIF

အဲဒီေအာက္ကမွ dllfile ဆိုတဲ့ sub key တစ္ခု ေတြ႔ေအာင္ရွာပါ၊ အဲဒီ dllfile ဆိုတဲ့ sub key ေအာက္မွာ shell ဆိုတဲ့ sub key တစ္ခု ထပ္ေဆာက္ပါမယ္၊ ရွိျပီးသားဆို ေဆာက္စရာမလိုေပါ့ဗ်ာ။ ေဆာက္ရမယ္ဆိုရင္ေတာ့ dllfile ဆုိတဲ့ sub key အေပၚမွာ right click ေခါက္ -> menu ေပၚလာရင္ New -> Key လို႔ေရြးျပီး  စာရိုက္စရာ ေလးေပၚလာရင္ အဲဒီေနရာမွာ shell လို႔ရိုက္လိုက္ပါ၊

newkey.GIF

အဲဒီ shell sub key ေအာက္မွာ Regsvr32 ဆိုတဲ့ sub key တစ္ခု ထပ္ေဆာက္မယ္၊ ျပီးရင္ Regsvr32 ဆိုတဲ့ sub key ေအာက္မွာ command ဆိုတဲ့ sub key ထပ္ေဆာက္မယ္၊ အဲလိုဘဲ shell ဆိုတဲ့ sub key ေအာက္မွာ UnRegsvr32 -> command ဆိုတဲ့ sub key ေတြ ဆက္ေဆာက္မယ္။ အားလံုးျပီးသြားရင္ ဒီလိုျဖစ္ေနရမယ္ေပါ့ေနာ္ ..။

 regsvr324.GIF 

အဲဒီအခါမွ Regsvr32 ->command ကိုေရြး ၊ ညာဘက္မွာ ေပၚလာတဲ့ key value အေပၚမွာ Right Click ေခါက္ Modify ကိုေရြး regsvr322.GIFျပီးရင္ ေပၚလာတဲ့ Dialogue Box မွာ Value data text box မွာ “regsvr32.exe” %1 လို႔ ရိုက္ပါ၊ OK ႏွိပ္ပါ။

regsvr3221.GIF

ေနက္တစ္ခါမွာ UnRegsvr32 ->command ကိုေရြး ၊ ညာဘက္မွာ ေပၚလာတဲ့ key value အေပၚမွာ Right Click ေခါက္ Modify ကိုေရြး ျပီးရင္ ေပၚလာတဲ့ Dialogue Box မွာ Value data text box မွာ “regsvr32.exe” /u %1 လို႔ ရိုက္ပါ၊ OK ႏွိပ္ပါ။

regsvr323.GIF

ဒါဆိုအားလံုးလုပ္ျပီးသြားပါျပီ။ Registry ထဲကထြက္ျပီး Windows Explorer ထဲကို၀င္ ကိုယ္ register လုပ္ျခင္တဲ့ DLL ကိုရွာ Right click ေခါက္လိုက္ရင္ ပံုမွာျပထားတဲ့အတိုင္း အေပၚဆံုးမွာ Regsvr32 နဲ႔ unregsvr32 ဆိုျပီး menu ႏွစ္ခု ေပၚလာပါမည့္ အေၾကာင္း၊ Regsvr32 ကို ႏွိပ္လိုက္ရင္ Registry မွာ register လုပ္ေပးျပီးေတာ့ unregsvr32 ကိုႏွိပ္ရင္ေတာ့ unregister လုပ္ေပးမွာျဖစ္ပါတယ္၊ ေအာင္ျမင္ၾကပါေစဗ်ာ။

regsvr325.GIF


5 Responses to “Register DLL files in Windows Explorer”

  1. By ooster on Apr 2, 2008 | Reply

    RegEdit နဲ႕ RegEdit32နဲ႕ ကြာျခားခ်က္ ေတြရွိခဲ့ရင္လည္း သိခ်င္ပါတယ္။

  2. By MrDBA on Apr 6, 2008 | Reply

    အေသးစိတ္ကို ဒီမွာဘဲ သြားဖတ္လိုက္ပါေနာ္
    http://support.microsoft.com/kb/141377

  3. By ရဲလင္း on May 15, 2008 | Reply

    dll ဖုိင္ေတြရဲ့လုပ္ေဆာင္ခ်က္မ်ားနဲ႔ သူ႕ကိုဘာလို႕Register လုပ္ရတယ္ဆိုတာကို သိခ်င္ပါတယ္။ gmail နဲ႕ပဲေျဖေပးပါအံုးဗ်ာ။
    ေက်းဇူးတင္ပါတယ္။

  4. By ko aung on May 23, 2008 | Reply

    Thanks for your post,
    it is very well.BUT
    dll ဖုိင္ေတြရဲ့လုပ္ေဆာင္ခ်က္မ်ားနဲ႔ သူ႕ကိုဘာလို႕Register လုပ္ရတယ္ဆိုတာကို သိခ်င္ပါတယ္။ gmail နဲ႕ပဲေျဖေပးပါအံုးဗ်ာ။
    That is right.
    i cannot type myanmar fonts.so i copy above text.please forgive me .i also why we need to register dll files.I believe you must have reason.
    please explain to me.i wait your reply

  5. By MrDBA on May 26, 2008 | Reply

    ဘယ္လိုေျပာရမလဲေပါ့ေနာ္ …
    နားလည္လြယ္ေအာင္ အလြယ္ေျပာရရင္ေတာ့ကာ
    software ေတြေရးၾကတဲ့အခါ သူသူကိုယ္ကိုယ္ Library ဖိုင္ေတြေရးၾကလိမ့္မယ္ေပါ့ေနာ္
    အဲဒီအခါမယ္ Class name တူခ်င္လဲတူေနမယ္၊ function name ေတြလဲ တူခ်င္တူေနလိမ့္မယ္ေပါ့။
    ဆိုေတာ့ကာ ၀င္းဒိုးစနစ္ၾကီးက ကိုင္တြယ္တဲ့အခါ နာမည္တူေနရင္ အကုန္ခက္ကုန္မွာမို႔
    သူ႕ကို ၀င္းဒိုး registry မွာ သီးျခား class Id ေပးဖို႔လိုလာတယ္ေပါ့ေလ
    အဲဒီအတြက္ေၾကာင့္မို႔လို႔ Library ဖိုင္ေတြသံုးခ်င္တဲ့အခါ Registry မွာ မွတ္ပံုတင္ေပးရခ်င္း ျဖစ္ပါေၾကာင္း။
    နားလည္ထားသေလာက္ ေျပာျပရပါေပတယ္။

Post a Comment