添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Symptom:

When compiling a Visual Basic 6 application the following error is generated when VB encounters the type "IUnknown":

Compiler error:
User-defined type not defined

Cause:

This error means simply that the VB compiler has encountered a type that it does not recognise. The compiler is assuming this to be a user-defined type because it is not a system defined one.

In the case of IUnknown this error indicates that the VB project is missing a reference to the OLE Automation library.

Remedy:

These notes apply specifically to the case where the unknown type is "IUnknown": add the following reference to the project:

C:\WinNT\System32\stdole2.tlb

substitute C:\Windows if using Windows 9x or XP.

These notes have been tested with Visual Basic 6 running under Windows NT and Windows 2000.Symptom:

When compiling a Visual Basic 6 application the following error is generated when VB encounters the type "IUnknown":

Compiler error:
User-defined type not defined

Cause:

This error means simply that the VB compiler has encountered a type that it does not recognise. The compiler is assuming this to be a user-defined type because it is not a system defined one.

In the case of IUnknown this error indicates that the VB project is missing a reference to the OLE Automation library.

Remedy:

These notes apply specifically to the case where the unknown type is "IUnknown": add the following reference to the project:

C:\WinNT\System32\stdole2.tlb

substitute C:\Windows if using Windows 9x or XP.
These notes have been tested with Visual Basic 6 running under Windows NT and Windows 2000.

原网站 http://www.cryer.co.uk/brian/mswinswdev/ms_vb_udtnd_iunknown.htm

Symptom:When compiling a Visual Basic 6 application the following error is generated when VB encounters the type "IUnknown":Compiler error:User-defined type not definedCause:This err
VB6拾遗:I Unknown 接口与COM对象 http://demon.tw/programming/vb6-repick-i unknown -com.html VB6是建立在COM之上的,所有的COM对象都必须实现I Unknown 接口。 I Unknown 接口的IDL 定义 如下: VB6是建立在COM之上的,所有的COM对象都必须实现I Unknown 接口。 I Unknown
2.项目设置C/C++--->预处理器---》预处理 定义 内是否包含_WINDOWS_,删除 3.项目设置C/C++--->预处理器---》预处理 定义 内添加宏:_WINSOCKAPI_ 4. 电... 经过查找终于找到了解决方案:在Unity中通过Edit->Project Settings->Player的路径打开窗口,将窗口中的Api Compatibility Level选项设置为.NET 4.x即可。
C1189 Winver 0x501 fatal error C1189: #error: MFC does not support WINVER less than 0x0501. 方式一&方式二 注释掉后,vs会自动从WinSDKVer.h头文件获取 _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h) C1189 RTCc fatal error C1189: #error: /R