GCC fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1707,7 +1707,8 @@ void CeditorDlg::OnSelectPict()
|
||||
|
||||
if (file.IsOpened())
|
||||
{
|
||||
wxFileOffset iSize = file.Length();
|
||||
// assume not huge file in sample
|
||||
long iSize = (long)file.Length();
|
||||
|
||||
if ((iSize > 0) && (iSize < MAX_PICTURE_SIZE))
|
||||
{
|
||||
@@ -1721,7 +1722,7 @@ void CeditorDlg::OnSelectPict()
|
||||
wxMessageBox(wxT("Something bad happened while reading..."), wxT("BLOB Loading Error"), wxOK | wxICON_EXCLAMATION);
|
||||
|
||||
wxString tStr;
|
||||
tStr.Printf(wxT("%lu"),iSize);
|
||||
tStr.Printf(wxT("%ld"),iSize);
|
||||
pPictSizeTxt->SetValue(tStr);
|
||||
}
|
||||
else
|
||||
|
@@ -202,7 +202,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, const wxString &windowTitle, const wxSt
|
||||
if (!lookup->Open())
|
||||
{
|
||||
wxString tStr;
|
||||
tStr.Printf(wxT("Unable to open the table '%s'."), tableName);
|
||||
tStr.Printf(wxT("Unable to open the table '%s'."), tableName.c_str());
|
||||
wxMessageBox(tStr, wxT("ODBC Error..."));
|
||||
Close();
|
||||
return;
|
||||
@@ -309,7 +309,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, const wxString &windowTitle, const wxSt
|
||||
if (!lookup2->Open())
|
||||
{
|
||||
wxString tStr;
|
||||
tStr.Printf(wxT("Unable to open the table '%s'."),tableName);
|
||||
tStr.Printf(wxT("Unable to open the table '%s'."),tableName.c_str());
|
||||
tStr += GetExtendedDBErrorMsg2(pDb,__TFILE__,__LINE__);
|
||||
wxMessageBox(tStr,wxT("ODBC Error..."));
|
||||
Close();
|
||||
|
Reference in New Issue
Block a user