I had same problem before ...I had same problem before when I used a component that was created
by other guy in my company, the reason was that this component calls another component, and that component was not compatitable with the component, so I re-compiled that component and register it, that is it.
-techgugu(early bird);
2003-6-28{276}(#1261860@0)
Is this your control, or a third-party control?
-red7male(洪七公);
2002-8-29(#719420@0)
It was made by another developer in my company, but he is gone
-lwwy(Lwwy);
2002-8-29(#719427@0)
one thing to check is to see if the binary compatiblity is set in the project. instead of direct going into registry, try to use regsvr32 to unregister the ocx file,recompile the control, then use regsvr32 to register it.
In your vb project, remove and add back the reference.
-red7male(洪七公);
2002-8-29{112}(#719454@0)
还是不行.痛苦!!!!!!!!!这个控件编译生成ocx,很简单(只包括一个UserControl),他的引用和部件(一个dll,一个ocx)都在(都已注册),编译也通过,就是不能使用.加入窗体中提示class not registered. Looking for object with CLSID:{******************************}
-lwwy(Lwwy);
2002-8-29{218}(#720087@0)
this DAO3.51 is kind of old (back to vb5 world) and I don't think it will work together with Win2K or Office 2000--- was the control written in vb 5? Anyway, I recommend you upgrade to DAO 3.6.
-red7male(洪七公);
2002-8-29(#720138@0)
I will try to upgrade VB, thanks. I will tell you what's going on
-lwwy(Lwwy);
2002-8-29(#720144@0)
after you upgrade vb, make sure the control refer to 3.6 instead of 3.51
-red7male(洪七公);
2002-8-29(#720152@0)
all were made by VB
-lwwy(Lwwy);
2002-8-30(#721430@0)
Has the control ever worked for you before?
-red7male(洪七公);
2002-8-30(#721431@0)
Yes. It works before. This project has 15 controls made by us.But just this one can not work now. I still think some thing is wrong with windows register, but I try to using this control with another computer, also can not works.
-iamnotcanadian(NeverCanadian);
2002-8-30{167}(#721450@0)
Then probable the interface of some public methods in the control (or the dll) have been changed. You told me the control doesn't have binary-compitability set before.Chaning in the interface causes a new version of the control. I wonder if your registry has multiple (broken) version of the control installed.
I recommend you clean up the registry first. Search by the program id, and locate all entries.
Then recompile the control again, use regsvr32 to register it (be sure the control it refers to have been registerd first).
-red7male(洪七公);
2002-8-30{365}(#721468@0)
is it using mdac? The control it referred also coded in VB? which version?
-red7male(洪七公);
2002-8-29(#720101@0)
I didn't find this reference
-lwwy(Lwwy);
2002-8-29(#720108@0)
yes, good point. If you can't use the control even in a simple project, then probably means your control is missing some supporting dlls.
-red7male(洪七公);
2002-8-29(#719907@0)
I will check it, thanks. Keep in touch.
-lwwy(Lwwy);
2002-8-29(#719913@0)