C Examples: DbiGetLdNameFromDb

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiGetLdNameFromDb

Return to chapter overview

Obtain the name of the language driver for the (C++Builder) TDatabase component Database1 and display its name in a dialog box.

 

void __fastcall TForm1::Button2Click(TObject *Sender)

{

  char* LName;

  if (DbiGetLdNameFromDb(Database1->Handle, NULL, LName) == DBIERR_NONE)

    ShowMessage(LName);

  else

    ShowMessage("No-go");

}