Hello everyone,
I don't often use forums for getting answers, but I simply cannot seem to find how to fire a MessageBox under Borland Builder...I could use MessageDlg which works, but I only want an OK button, so I would rather go with MessageBox...code sample:
void __fastcall TForm1::cmdPlayClick(TObject *Sender)
{
if (TForm1::txtLogin->Text=="")
{
::MessageBox("Invalid Login Name!", "Error!", MB_OK, 0);
return;
}
With MessageDlg:
if (TForm1::txtPass->Text=="")
{
MessageDlg("Invalid Password!", mtError, mbOKCancel, 0);
return;
}
TForm1::LoadLauncher();
}
NOTE: I know it defines mbOK as a variable for TMsgDlgButtons, but it fires an error that it's NOT a recognized variable...I may be overlooking something, but it's late and I've been coding for hours now just getting my ActiveX control to function without causing access violations at memory address 0x000000 (WideString function is your friend.) Next issue will be writing the code to open a file which is like an ini file, but has a different structure (ie: no "[]" but uses "=" as an assignment operator...I *think* I have the groundwork set, but am unfamiliar with C++ file manipulation, I had created a similar program in VB6 and the styles of coding are mixing in my head =)
Thanks in advance for any information.