Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

API error in c++ builder

sendprivatesendprivate Member Posts: 2
Hi;

We tried to access an another program from Borland C++ Builder but could not manage to start the application. I've composed a web page about this subject
"Accessing Sap2000 From Borland C++ Builder". The tentative form of the page is as follows.

http://www.ins.itu.edu.tr/kutlu/bcbsap2000/bcb_SAP2000.htm

You can see the steps that we follow and the errors met.

We would appreciate it if you can give opinion how we can solve the problem.

Best Regards

Comments

  • LundinLundin Member Posts: 3,711
    Error 1: It wants a a short and a Unicode string, you are passing bool and a a regular string. Do some type conversions and try again.

    Error 2: The SAPObject seems to contain virtual methods, ie it is an abstract base class. You can't create objects of abstract base classes. This is a very fundamental object-orientation concept.
  • sendprivatesendprivate Member Posts: 2
    Thanks a lot for your help.
    We change the code as
    S1->ApplicationStart(kN_m_C,short(1),WideString (""));
    It compiles without error but it produces a runtime error.
    The new form of the page is as follows.

    http://www.ins.itu.edu.tr/kutlu/bcbsap2000/bcb_SAP2000.htm

    Again you can see the steps that we follow and the new error met.

    We would appreciate it if you can give opinion how we can solve the new problem.

    Since we are civil engineering students sorry for our newbie questions but it is so hard for us to find answers in nearby.

    Regards
Sign In or Register to comment.