Axeel -
I have never used Borland Builder C++ but I downloaded the trial version 6.0 (Build 10.160) and I was able to use the Project Import Type Library menu command to generate the TS_TLB files. From there I was able to create a simple form application where I dropped the TEngine control from the ActiveX palette, a button control and a timer control for message polling. The code below is what I added to call into TestStand. I did not have any compiling problems.
Hope this helps...
Scott Richardson (NI)
void __fastcall TForm1::Button1Click(TObject *Sender)
{
try
{
VARIANT_BOOL = VARIANT_FALSE;
TNoParam tNoParam;
Ts_tlb::SequenceFilePtr seqFile;
Ts_tlb::ExecutionPtr exePtr;
Form1->Engine1->UIMessagePollingEnabled = true;
seqFile = Form1->Engine1->GetSequenceFile(L"c:\\temp\\temp.seq", 0);
exePtr = Form1->Engine1->NewExecution(seqFile, L"MainSequence", 0,
0, 0, tNoParam, tNoParam, tNoParam);
exePtr->WaitForEnd(-1, 1, tNoParam);
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
}
//----------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
Ts_tlb::UIMessagePtr UIMsg;
if (!Form1->Engine1->IsUIMessageQueueEmpty)
{
UIMsg = Form1->Engine1->GetUIMessage();
UIMsg->Acknowledge();
}
}
//-------------------------------
---------------------
Scott Richardson
https://testeract.com