#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+
+#if wxUSE_IOSTREAMH
#include <fstream.h>
+#else
+#include <fstream>
+# ifdef _MSC_VER
+ using namespace std;
+# endif
+#endif
+
#include <windows.h>
#include <wx/msw/pngread.h>
#include <wx/msw/dibutils.h>
HDC dc2 = GetDC(NULL);
HBITMAP tmpBitmap = ::CreateCompatibleBitmap(dc2, GetWidth(), GetHeight());
ReleaseDC(NULL, dc2);
- HBITMAP oldBitmap = ::SelectObject(dc, tmpBitmap);
+ HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, tmpBitmap);
if ( Palette )
{
HBITMAP hBitmap = ::CreateBitmap(GetWidth(), GetHeight(), 1, 1, NULL);
HDC dc = ::CreateCompatibleDC(NULL);
- HBITMAP oldBitmap = ::SelectObject(dc, hBitmap);
+ HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, hBitmap);
int bgIndex = GetBGIndex();
IMPLEMENT_DYNAMIC_CLASS(wxPNGFileHandler, wxBitmapHandler)
-bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, const long flags,
+bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
int desiredWidth, int desiredHeight)
{
wxPNGReader reader;
return FALSE;
}
-bool wxPNGFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, const int type, const wxPalette *pal)
+bool wxPNGFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *pal)
{
return FALSE;
}