diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index a4c6a40a00..563a8b13a1 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -413,7 +413,8 @@ bool MyApp::LoadImages() pathList.Add(wxFileName(argv[0]).GetPath()); pathList.Add(wxT(".")); pathList.Add(wxT("..")); - pathList.Add(wxT("../..")); + pathList.Add(wxT("../drawing")); + pathList.Add(wxT("../../../samples/drawing")); wxString path = pathList.FindValidPath(wxT("pat4.bmp")); if ( !path ) diff --git a/samples/html/help/help.cpp b/samples/html/help/help.cpp index a3746f333a..3833ed2255 100644 --- a/samples/html/help/help.cpp +++ b/samples/html/help/help.cpp @@ -163,10 +163,16 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) help.UseConfig(wxConfig::Get()); bool ret; help.SetTempDir(wxT(".")); - ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX)); + + wxPathList pathlist; + pathlist.Add(wxT("./helpfiles")); + pathlist.Add(wxT("../helpfiles")); + pathlist.Add(wxT("../../html/help/helpfiles")); + + ret = help.AddBook(wxFileName(pathlist.FindValidPath(wxT("testing.hhp")), wxPATH_UNIX)); if (! ret) wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp")); - ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX)); + ret = help.AddBook(wxFileName(pathlist.FindValidPath(wxT("another.hhp")), wxPATH_UNIX)); if (! ret) wxMessageBox(_("Failed adding book helpfiles/another.hhp")); } diff --git a/samples/webview/webview.cpp b/samples/webview/webview.cpp index 362f2bc60b..856169e195 100644 --- a/samples/webview/webview.cpp +++ b/samples/webview/webview.cpp @@ -263,7 +263,7 @@ bool WebApp::OnInit() // Create the memory files wxImage::AddHandler(new wxPNGHandler); - wxMemoryFSHandler::AddFile("logo.png", + wxMemoryFSHandler::AddFile("logo.png", wxBitmap(wxlogo_xpm), wxBITMAP_TYPE_PNG); wxMemoryFSHandler::AddFile("page1.htm", "