English 中文(简体)
Powerbuilder ORCA API Deploy
原标题:Powerbuilder ORCA API Deploy

我正试图将我的发电项目部署到欧塞罗提和 or。 但我错了-21 PBORCA_CBBUILDERROR (部署失败)。 此外,还不要求设立后备职能。 我如何解决这一问题? BTW 我正在使用WindowsXP-32bit, Powerbuilder 11.2, EAServer 5.5, QT-4.8.0 opensource vs2010。

void __stdcall BuildErrProc(LPVOID lpUserData) {
  PPBORCA_BLDERR blderr = (PPBORCA_BLDERR)lpUserData;
  QString s;
  s = QString::fromStdWString(blderr->lpszMessageText);
  QMessageBox::information(0,"",s);
}

int WINAPI BuildProject(QString currentApplLibName,QString currentApplName,QString projectLibName,QString projectName,QStringList libraryNames)
{
  PBORCA_BLDPROC fpBuildErrProc;
  PPBORCA_BLDERR pBldErrData;
  fpBuildErrProc = (PBORCA_BLDPROC) BuildErrProc;
  pBldErrData = (PPBORCA_BLDERR) new PBORCA_BLDERR;
  memset(pBldErrData, 0x00, sizeof(PBORCA_BLDERR));

  HPBORCA hORCASession;
  hORCASession = SessionOpen();
  printf("Setting library list..
");    
  LPTSTR* pLibNames = new LPTSTR[libraryNames.size()];
  for(int i=0;i<libraryNames.size();i++) {
      pLibNames[i]=(LPTSTR)libraryNames.at(i).utf16();
  }
  int r = PBORCA_SessionSetLibraryList(hORCASession, pLibNames, libraryNames.size());
  if(r==0) {
      printf("Library list OK.
");
      QMessageBox::information(0,"",currentApplName);
      r = PBORCA_SessionSetCurrentAppl(hORCASession,(LPTSTR)currentApplLibName.utf16(),(LPTSTR)currentApplName.utf16());
      if(r==0) {
          printf("Setting current appl OK.
");         
          r = PBORCA_BuildProject(hORCASession,(LPTSTR)projectLibName.utf16(),(LPTSTR)projectName.utf16(),fpBuildErrProc,pBldErrData);
          if (r==0) {
              printf("Building current prj OK.
");
          } else {
              printf("Build FAILURE:%d
",r);
          }
      } else {
          printf("Current appl FAILURE.
");
      }
  } else {
      printf("Library list FAILURE:%d
",r);
  }
  SessionClose(hORCASession);
  return r;
}
最佳回答

我解决了这个问题。 图书馆清单是错误的。 当我确定正确的校准清单时,它成功地建立了该项目。

问题回答

暂无回答




相关问题
Access Database Pass Through Query?

I have linked Sybase database table with Access 2003. I only have read access to the Sybase database and created a pass-through query in access. Now what I need is, I need to create a temp table in ...

Can I trace database s records by SQL query from log file?

I need to trace changes on a record in database. I have some triggers on different tables that calls one stored procedure and this sp updates records in certain table (table1). I will trace records ...

How *does* Powerbuilder POST work?

Unfortunately searching for Sybase Post doesn t get me the answers I m looking for. I want to know what the actual function is of POST As in .. procedure lala POST procedure1() procedure2() I m ...

Full table scan occured even when index exists?

We have a sql query as follows select * from Table where date < 20091010 However when we look at the query plan, we see The type of query is SELECT. FROM TABLE Worktable1. ...

Sybase Development IDE

Is there a Toad type application for Sybase? I can t seem to find a single one! I ve tried using VS 2008 but can t see the sproc source.

热门标签