将项目从 vc 6.0 转换为 vc 2010 时出错 [英] error when convert project from vc 6.0 to vc 2010

查看:26
本文介绍了将项目从 vc 6.0 转换为 vc 2010 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功地将 Visual c++ 6.0 上的 c/c++ 项目编译并构建到 dll.但是当我在 windwos 7 64 位操作系统上转换为 Visual c++ 2010 时,它出现了很多错误.源代码是

i have successfully compile and build c/c++ project on visual c++ 6.0 to dll .But when i convert to visual c++ 2010 on windwos 7 64bit os it appear many error .source code is

typedef  struct {                                   
     int               _entID          ; /* Entity ID                   */
     int               _recID          ; /* Recode No.                  */
     int               _Nmbr           ; /* 画像番号          0020:0013 */
     int               _Clmns          ; /* マトリクス X      0028:0011 */
     int               _Rws            ; /* マトリクス Y      0028:0010 */
     int               _ImagCnt        ; /* 複数フレーム数    0028:0008 */
     char              _Type[ 68 ]     ; /* 画像タイプ        0008:0008 */
     char              _cUID[ 68 ]     ; /* クラス UID        0004:1510 */
     char              _sUID[ 68 ]     ; /* SOP    UID        0008:0018 */
     char              _pathNm[ 128 ]  ;

     char             *_sptr           ;*****error at line*****
     int               _xsiz           ;//
     int               _ysiz           ; /*    "         Y サイズ       */
                                         /*                       @2.01 */
   char              _SpcSet[ 20 ]   ; /* Specific Char     0008:0005 */
                                         /*                       @2.30 */
     char              _SpcSet[ 64 ]   ; /* Specific Char     0008:0005 */
     }                 DDIR_IMAG_INF   ; /*                             */'

在 vc 2010 上构建时,会出现许多类似的错误,如下所示:错误 1 ​​d:\dxr-mls\program\dicm_dir_tool.dll\source\dicm_dir_tool\include\dicm_dir_tool_dll.h 错误 C2059:语法错误:';'Visual c++ 6.0 项目是 ansii 项目,注释是日语,使用一些 dll 和 windows 系统库,在 windows xp 32 位上构建成功帮帮我

when build on vc 2010 it appear many similar error like this: Error 1 d:\dxr-mls\program\dicm_dir_tool.dll\source\dicm_dir_tool\include\dicm_dir_tool_dll.h error C2059: syntax error : ';' visual c++ 6.0 project is ansii project with comment is japanese , use some dll and library of windows system ,was build successful in windows xp 32 bit help me

推荐答案

字符串 *_sptr*_uptr 在 Visual C++ 中似乎是魔法"指针类型.我搜索了 MSDN 和 Google,但找不到参考,但看起来您根本无法拥有名为 _sptr 的变量.基于 这个错误报告它们可能是保留标识符.

The strings *_sptr and *_uptr appear to be "magic" pointer types in Visual C++. I've searched MSDN and Google and can't find a reference but it looks like you simply can't have a variable named _sptr. Based on this bug report they may be reserved identifiers.

请注意,您还有两个名称相同的字段:_SpcSet

Note that you also have two fields with the same name: _SpcSet

这篇关于将项目从 vc 6.0 转换为 vc 2010 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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