davman2002
Programmer
I am trying to capture the Key that was pressed by the user. However I keep getting a mesage saying that it cannot convert a string type to a double. Here is my code. Any help is appreciated.
void __fastcall TfrmMain::MoveShip(TObject *Sender, char &Key)
{
if (Key == AnsiString("j"
)
picShip->Left = picShip->Left + 5;
}
void __fastcall TfrmMain::MoveShip(TObject *Sender, char &Key)
{
if (Key == AnsiString("j"
picShip->Left = picShip->Left + 5;
}