windows7 64位下运行 regsvr32 注册ocx或者dll的方法

来源:转载
 
it won't work for you unless you have some form of Visual Basic tools loaded on your system
: COMDLG32.OCX : Common Dialog -- this allows you to use code to open up a dialog box , select a file , and the commit that file.... then some more code will actually run the regsvr32.exe
:
1. Skip this Helper from above

2. put your DLL file into c:\windows\system

3. go to RUN or command promt and type : Regsver32.exe c:\windows\system\ <place extension="" file="" here="" name="" with="">

Example : Regsver32.exe c:\windows\system\gif89.dll

4. that's it

5. Windows XP will work

6. Windows 7 is a differnt beasty (writting 32bit DLL to 64 Windows7)
- place the DLL in the c:\windows\sysWOW64 folder
- go to accessories and Command Prompt
- log on command proimpt as Administrator
- from command prompt write full pathway
- example : c:\windows\sysWOW64\Regsver32.exe c:\windows\sysWOW64\gif89.dll

ELSE :
- be sure to Unregister your half register attempts
- place an /u inbetween the regsvr32 & the file
- example : Regsver32.exe /u c:\windows\system\gif89.dll.
.
LAST :
- It may be that in the even though you register your DLL
- your 64-bit program active x controls on your 64-bit computer cannot run the 32-bit DLL anyway
posted @ 2014-01-18 14:40  elon  阅读(815)  评论(0编辑  收藏  举报