* SYNOPSIS END
*/
-#ifdef __GNUG__
-#pragma implementation "dbtest.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
bool DatabaseDemoApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
DbConnectInf = NULL;
Contact = NULL;
void CeditorDlg::OnSelectPict()
{
- wxFileDialog dlg(this, wxT("Choose an image file less than 60K"), wxEmptyString, wxEmptyString, wxT("JPEG files (*.jpg)|*.jpg|GIF files (*.gif)|*.gif|BMP files (*.bmp)|*.bmp|All Files (*.*)|*.*"), wxOPEN);
+ wxFileDialog dlg(this, wxT("Choose an image file less than 60K"), wxEmptyString, wxEmptyString, wxT("JPEG files (*.jpg)|*.jpg|GIF files (*.gif)|*.gif|BMP files (*.bmp)|*.bmp|All Files (*.*)|*.*"), wxFD_OPEN);
if (dlg.ShowModal() == wxID_OK)
{
if(m_pImage->Ok())
{
- m_pBmp = new wxBitmap(m_pImage);
+ m_pBmp = new wxBitmap(*m_pImage);
m_pDisplayBmp = new wxStaticBitmap(this, IMAGE_DIALOG_STATIC_BMP, *m_pBmp, wxPoint(5,5), wxDefaultSize);
SetSize(m_pBmp->GetWidth() + 10, m_pBmp->GetHeight() + 30);