完整编译时vb6用户定义类型未定义错误 [英] vb6 user-defined type not defined error on full compile

查看:29
本文介绍了完整编译时vb6用户定义类型未定义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些很久没有编译的 vb6 代码.最后一次编译正在生产中.现在,当我进行完整编译时,出现错误未定义用户定义的类型".我确定有一个参考缺失.但是没有高亮的代码.而且我似乎无法找到可能丢失的参考.

I have some vb6 code I have not compiled in a long time. The last compile is in production. Now I get an error "User-defined type is not defined" when I do a full compile. I'm sure there is a reference missing. But there is no code that is hi-lighted. And I cannot seem to find what reference might be lost.

任何关于我可以做些什么来找到丢失的参考的线索都会非常有帮助.

Any clues as to what I can do to find the missing reference would be very helpful.

谢谢!

戴夫

推荐答案

在这让我发疯之前我就遇到过这种情况!!但后来我发现了这个:

I've had that happen before it drove me crazy!! But then I found this:

http://support.microsoft.com/kb/190197

在启用二进制兼容性的情况下编译时发生.上述解决方案建议关闭二进制兼容性并重新编译 - 然后将突出显示缺少的引用.

Occurs when compiling with binary compatibility on. The above solution suggests turning off binary compatibility and re-compiling - then missing reference will then be highlighted.

您可以尝试的其他步骤:

Other steps you can try:

  • 与其关闭 BC 的所有功能,不如寻找具有最近被改变了
  • 搜索 C: 驱动器和 dev 文件夹并删除任何*.oca 文件
  • 还要在 vbp 文件中查找任何 oca 引用

这篇关于完整编译时vb6用户定义类型未定义错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆