将项目从borland builder c ++ 6转换为embarcadero xe3时出错

时间:2015-07-28 07:59:07

标签: c++ borland-c++ c++builder-xe3

从几天开始我试图将项目从borland c ++ 6转换为embarcadero xe3,我仍然不知道该怎么做。

我有许多错误,例如“E2293”预期“但我知道这不是我的程序无法工作的原因。

在Borland 6中它一切正常,但在这里我有很多错误。如何用system.types.hpp,posix.systypes.hpp和posix.dlfcn.hpp解决问题?

      [bcc32 Error] System.Types.hpp(511): E2293 ) expected
        Kons.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
    vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
    basepch0.h(63): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.Types.hpp
          System.Types.hpp(38): namespace System
          System.Types.hpp(40): namespace Types

    [bcc32 Error] Posix.SysTypes.hpp(20): E2209 Unable to open include file 'pthread.h'
          KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
          vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
          basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
          System.SysUtils.hpp(19): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dirent.hpp
          Posix.Dirent.hpp(18): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.SysTypes.hpp

  [bcc32 Error] Posix.SysTypes.hpp(63): E2257 , expected
      KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
      vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
      basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
      System.SysUtils.hpp(19): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dirent.hpp
      Posix.Dirent.hpp(18): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.SysTypes.hpp
      Posix.SysTypes.hpp(23): namespace Posix
      Posix.SysTypes.hpp(25): namespace Systypes

  [bcc32 Error] Posix.Dlfcn.hpp(20): E2209 Unable to open include file 'dlfcn.h'
      KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
      vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
      basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
      System.SysUtils.hpp(20): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dlfcn.hpp

  [bcc32 Error] Posix.Dlfcn.hpp(27): E2257 , expected
      KonsHydExpres.cpp(3): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\vcl.h
      vcl.h(10): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\windows\vcl\basepch0.h
      basepch0.h(68): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\System.SysUtils.hpp
      System.SysUtils.hpp(20): #include c:\program files (x86)\embarcadero\rad studio\10.0\include\vcl\Posix.Dlfcn.hpp
      Posix.Dlfcn.hpp(23): namespace Posix
      Posix.Dlfcn.hpp(25): namespace Dlfcn

源代码示例:

 #include <vcl.h>
#pragma hdrstop

#include "OProgramie.h"
#include "About.h"
//#include<string>
#include "CommandLine.h"
#include "MenuLoader.h"

//---------------------------------------------------------------------
#pragma resource "*.dfm"
TAboutBox *AboutBox;
//--------------------------------------------------------------------- 



__fastcall TAboutBox::TAboutBox(TComponent* AOwner)
    : TForm(AOwner)
{

        vector<AnsiString> v = Split(AppDate," ");
        AnsiString d = v[0]+"/"+v[1]+"/"+v[2];

        Memo1->Lines->Strings[3] = d;
        Memo1->Lines->Strings[8] = menu.GetCaption("About","1");
        try{
                ProgramIcon->Picture->LoadFromFile(ExtractFileDir(Application->ExeName)+"\\icon\\bhmw.jpg");
        }catch(...){}
}
//---------------------------------------------------------------------
void __fastcall TAboutBox::OKButtonClick(TObject *Sender)
{
  Close();        
}

0 个答案:

没有答案