注册表HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}
的信息全部空了丢失导致的!
打开记事本,复制一下内容到记事本,然后保存为xxxx.reg,双击导入注册表,解决此问题!
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}]
@="StdDataFormat Object"
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\Implemented Categories\{40FC6ED5-2438-11CF-A3DB-080036F12502}]
@=""
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\InprocServer32]
@="C:\\WINDOWS\\system32\\MSSTDFMT.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\ProgId]
@="MSSTDFMT.StdDataFormat.1"
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\Programmable]
@=""
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\TypeLib]
@="{6B263850-900B-11D0-9484-00A0C91110ED}"
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\Version]
@="1.0"
[HKEY_CLASSES_ROOT\CLSID\{6D835690-900B-11D0-9484-00A0C91110ED}\VersionIndependentProgID]
@="MSSTDFMT.StdDataFormat"
VB自带有一个函数用来读取与写入注册表的。分别是:读取,[Default]这里是如果没有,则建立默认值
GetSetting(AppName
As
String,
Section
As
String,
Key
As
String,
[Default])
As
String
写入
SaveSetting(AppName
As
String,
Section
As
String,
Key
As
String,
Setting
As
String)
它会把注册表写到:HKEY_CURRENT_USER\Software\VB
and
VBA
Program
Settings\你的程序名(函数中的AppName)\子夹(函数中的Section)\键值(函数中的Key)\
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)