error when convert project from vc 6.0 to vc 2010

你离开我真会死。 提交于 2019-12-25 05:12:06

问题


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   ; /*                             */'

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


回答1:


Check this: http://msdn.microsoft.com/en-us/library/t8xe60cf(v=vs.100).aspx Some may apply to your problem.




回答2:


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.

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



来源:https://stackoverflow.com/questions/10511072/error-when-convert-project-from-vc-6-0-to-vc-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!