SOLUCIONADO.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent Owner)
: TForm(Owner)
{
AnsiString a,b,result;
a=InputBox("mi primer programa","inserta el primer numero","");
b=InputBox("mi primer programa","inserta el segundo numero","");
result=(StrToInt(a)+StrToInt(b));
ShowMessage("el resultado es",+result);
}
//---------------------------------------------------------------------------