求助:新裝VB無法加載Data Environment

zeng_zhh 2003-03-26 11:32:34
操作系統:win2000 Server
VB版本:Vb6.0企業版

全部為新安裝,當建立Data工程的時候,VB無法加載DE.
請問怎樣加載??

錯誤原因是:
Line 2: Class {C0E45035-5775-11D0-B388-00A0C9055D8E} of control DataEnvironment1 was not a loaded control class.
Line 0: The file E:\Program Files\Microsoft Visual Studio\VB98\Template\Projects\DataEnv.Dsr could not be loaded.
...全文
318 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zeng_zhh 2003-03-26
  • 打赏
  • 举报
回复
啊.問題解決啦.
解決經國如下:
用GOOGLE查詢"C0E45035-5775-11D0-B388-00A0C9055D8E" 字串,搜索到
"http://dbforums.com/arch/15/2002/9/477460"
得到的解釋是:
Had the same problem for some days now and just fixed it.

Look "Project\References" menu of VB6, see at the dialog the "Microsoft Data Environment Instance 1.0 (SP4)" is selected. Choose it and you'll see at the bottom the text "Location: C:\Program Files\Common Files\designer\msderun.dll" (or similar location)

go there and for each .dll and .ocx file in that folder and all subfolders open them with "regsvr32.exe" (from windows\system or winnt\system32) to reregister them. Especially try the "msderun.dll" first (then close and reopen your VB project)

also did the same with all ms*.dll and similar .ocx files at winnt\system32

did the same at "c:\Program Files\Common Files\System\ado" for msjro.dll, msadox.dll, msadrh15.dll, msador15.dll,
msadomd15.dll (I must haven done this for the rest of the files there)

I usually assign regsvr32.exe to open the .ocx and .dll files when they're double clicked. Else do (shift+)right_click and open with..., then press "Browse..." and select "regsvr32.exe" from the winnt\system32 (WinNT/2000/XP) or windows\system (Win9x/WinMe) folder

因為我的電腦是雙系統,在C盤上原來有WIN98,VB6,后來由于工作需要,再安裝一個WIN2000于C盤,VB6安裝于E盤,這樣他們兩個系統下的VB公用一個目錄C:\Program Files\Common Files\designer
而WIN2000下的VB6沒有注冊到MSDE.DLL這個庫.導致加載DE的時候無法正常運行.提示錯誤.
現在在WIN2000下用"regsrv32"命令注冊MSDE.dll.運行VB6,正常.問題解決.

本來是不用發貼子問各位朋友的,不過也正是因為發了這個貼子的同時,促使自己立刻去想辦法解決問題.

好了,問題解決啦.有那位朋友需要分的,進來一下吧.
mouseanAnya 2003-03-26
  • 打赏
  • 举报
回复
嗯,解决就好。 :)
haplessboy 2003-03-26
  • 打赏
  • 举报
回复
我也要分!
limit 2003-03-26
  • 打赏
  • 举报
回复
我要分。

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧