[C++ Error] loltimer.cpp(11): E2316 '_fastcall TForm1::TForm1(TComponent *)' is not a member of 'TForm1'
The declaration of your TForm()
constructor is different in your .h and .cpp code, specifically in the Owner
parameter. They need to match:
public: // User declarations
__fastcall TForm1(TComponent *Owner);
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
...
}
[C++ Error] loltimer.cpp(18): E2062 Invalid indirection
You are dereferencing the combo
pointer using the *
operator and then dereferencing it again with the ->
operator. That will not work in this case. You need to either:
Use the
->
operator by itself (the typical usage):combo->Items->Add("Flash");
Use the
.
operator instead of the->
operator (not typical):(*combo).Items->Add("Flash");