//extern wxDbList WXDLLEXPORT *PtrBegDbList; /* from db.cpp, used in getting back error results from db connections */
-#if wxUSE_NEW_GRID
+#if wxUSE_GRID
#include "wx/grid.h"
#include "wx/generic/gridctrl.h"
#include "wx/dbgrid.h"
if (DataTypeSupported(pDb,SQL_C_BINARY, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_BINARY (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_BIT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_BIT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_BOOKMARK, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_BOOKMARK (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_CHAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_CHAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_DATE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_DATE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_DEFAULT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_DEFAULT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_DOUBLE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_DOUBLE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_FLOAT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_FLOAT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_GUID, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_GUID (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_DAY, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_DAY (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_DAY_TO_HOUR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_DAY_TO_HOUR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_DAY_TO_MINUTE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_DAY_TO_MINUTE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_DAY_TO_SECOND, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_DAY_TO_SECOND (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_HOUR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_HOUR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_HOUR_TO_MINUTE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_HOUR_TO_MINUTE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_HOUR_TO_SECOND, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_HOUR_TO_SECOND (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_MINUTE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_MINUTE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_MINUTE_TO_SECOND, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_MINUTE_TO_SECOND (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_MONTH, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_MONTH (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_SECOND, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_SECOND (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_YEAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_YEAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_INTERVAL_YEAR_TO_MONTH, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_INTERVAL_YEAR_TO_MONTH (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_LONG, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_LONG (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_NUMERIC, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_NUMERIC (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_SBIGINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_SBIGINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_SHORT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_SHORT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_SLONG, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_SLONG (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_SSHORT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_SSHORT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_STINYINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_STINYINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TIME, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TIME (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TIMESTAMP, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TIMESTAMP (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TINYINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TINYINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TYPE_DATE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TYPE_DATE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TYPE_TIME, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TYPE_TIME (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TYPE_TIMESTAMP, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TYPE_TIMESTAMP (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_UBIGINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_UBIGINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_ULONG, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_ULONG (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_USHORT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_USHORT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_UTINYINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_UTINYINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_VARBOOKMARK, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_VARBOOKMARK (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_DATE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_DATE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_INTERVAL, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_INTERVAL (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_TIME, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_TIME (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_TIMESTAMP, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_TIMESTAMP (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_LONGVARCHAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_LONGVARCHAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_BINARY, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_BINARY (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_VARBINARY, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_VARBINARY (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_LONGVARBINARY, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_LOGVARBINARY (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_BIGINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_BIGINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_TINYINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_TINYINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_BIT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_BIT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_GUID, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_GUID (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_CHAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_CHAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_INTEGER, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_INTEGER (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_SMALLINT, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_SAMLLINT (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_REAL, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_REAL (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_DOUBLE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_DOUBLE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_NUMERIC, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_NUMERIC (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_DATE, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_DATE (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_TIME, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_TIME (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_TIMESTAMP, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_TIMESTAMP (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_VARCHAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_VARCHAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
if (DataTypeSupported(pDb,SQL_C_TCHAR, &nativeDataTypeName))
{
nativeDataTypeName = wxT("SQL_C_TCHAR (") + nativeDataTypeName;
- nativeDataTypeName += wxT(")");
+ nativeDataTypeName += wxT(")\n");
wxLogMessage(nativeDataTypeName);
}
#endif
- wxLogMessage(wxT("\n"));
+ wxLogMessage(wxT("Done\n"));
} // CheckSupportForAllDataTypes()
file_menu->Append(FILE_CREATE_ID, wxT("&Create CONTACT table"));
file_menu->Append(FILE_RECREATE_TABLE, wxT("&Recreate CONTACT table"));
file_menu->Append(FILE_RECREATE_INDEXES, wxT("&Recreate CONTACT indexes"));
-#if wxUSE_NEW_GRID
+#if wxUSE_GRID
file_menu->Append(FILE_DBGRID_TABLE, wxT("&Open DB Grid example"));
#endif
file_menu->Append(FILE_EXIT, wxT("E&xit"));
EVT_MENU(FILE_CREATE_ID, DatabaseDemoFrame::OnCreate)
EVT_MENU(FILE_RECREATE_TABLE, DatabaseDemoFrame::OnRecreateTable)
EVT_MENU(FILE_RECREATE_INDEXES, DatabaseDemoFrame::OnRecreateIndexes)
-#if wxUSE_NEW_GRID
+#if wxUSE_GRID
EVT_MENU(FILE_DBGRID_TABLE, DatabaseDemoFrame::OnDbGridTable)
#endif
EVT_MENU(FILE_EXIT, DatabaseDemoFrame::OnExit)
} // DatabaseDemoFrame::OnRecreateIndexes()
-#if wxUSE_NEW_GRID
+#if wxUSE_GRID
void DatabaseDemoFrame::OnDbGridTable(wxCommandEvent& WXUNUSED(event))
{
DbGridFrame *frame = new DbGridFrame(this);
wxString s, t;
bool comma = FALSE;
- s = langDBINF_DB_NAME;
+ s = wxT("Diagnostics Output\n");
+ s += langDBINF_DB_NAME;
s += pDb->dbInf.dbmsName;
s += wxT("\n");
s += wxT("\n");
}
+ s += wxT("End of Diagnostics\n");
wxLogMessage(s);
} // DisplayDbDiagnostics()
-#if wxUSE_NEW_GRID
+#if wxUSE_GRID
BEGIN_EVENT_TABLE(DbGridFrame, wxFrame)
// EVT_CLOSE(DbGridFrame::OnCloseWindow)
}
-void DbGridFrame::OnCloseWindow(wxCloseEvent& event)
+void DbGridFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
{
this->Destroy();
}
new wxGridCellEnumRenderer,
new wxGridCellEnumEditor);
- wxString NativeLangChoice( wxString::Format("%s:%s,%s,%s,%s,%s",wxGRID_VALUE_CHOICEINT,
+ wxString NativeLangChoice( wxString::Format(wxT("%s:%s,%s,%s,%s,%s"),wxGRID_VALUE_CHOICEINT,
wxT("English"),
wxT("French"),
wxT("German"),
return TRUE;
} // DbGridFrame::Initialize()
-#endif // #if wxUSE_NEW_GRID
+#endif // #if wxUSE_GRID
/*
TEST CODE FOR TESTING THE wxDbCreateDataSource() FUNCTION