zoukankan      html  css  js  c++  java
  • (转)SW插件工程从VC6.0升级到VC9.0解决方案

    1、错误

    Error 1 fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h 217

    原因及解决方法:在StdAfx.h文件中,将

    #ifndef _WIN32_WINNT
    #define _WIN32_WINNT 0x0400
    #endif

    改成

    #ifndef _WIN32_WINNT
     #define _WIN32_WINNT 0x0501
    #endif

    2、错误

    Error 1 fatal error C1083: Cannot open type library file: 'sldworks.tlb': No such file or directory f:\soildworks\练习2\test-wuyao\stdafx.h 41
    原因及解决方法:缺少sldworks.tlb文件,添加该文件

    例如:

    #import "D:\Program Files\SolidWorks\sldworks.tlb" raw_interfaces_only, raw_native_types, no_namespace, named_guids

    3、错误

    Error 1 error C3121: cannot change GUID for class 'IEntity' f:\soildworks\练习2\test-wuyao\debug\sldworks.tlh 122
    Error 2 error C2011: 'IEntity' : 'struct' type redefinition f:\soildworks\练习2\test-wuyao\debug\sldworks.tlh 32851
    原因及解决方法:IEntity重定义,在StdAfx.h文件中添加#define __IEntity_INTERFACE_DEFINED__(若未定义IEntity,则定义IEntity)

    例如:

    #ifndef __IEntity_INTERFACE_DEFINED__
    #define __IEntity_INTERFACE_DEFINED__
    #endif  /* __IEntity_INTERFACE_DEFINED__ */

  • 相关阅读:
    sql语句游标的写法
    oracle的安装与plsql的环境配置
    oracle中创建表时添加注释
    jsp中Java代码中怎么获取jsp页面元素
    sql模糊查询
    jQuery循环给某个ID赋值
    Codeforces Round #671 (Div. 2)
    TYVJ1935 导弹防御塔
    Educational Codeforces Round 95 (Rated for Div. 2)
    Codeforces Round #670 (Div. 2)
  • 原文地址:https://www.cnblogs.com/plus/p/2301831.html
Copyright © 2011-2022 走看看