]> git.saurik.com Git - wxWidgets.git/commitdiff
Removing some level 3 warning
authorPatrick Albert <als@barjov.frmug.fr.net>
Fri, 27 Aug 1999 11:46:55 +0000 (11:46 +0000)
committerPatrick Albert <als@barjov.frmug.fr.net>
Fri, 27 Aug 1999 11:46:55 +0000 (11:46 +0000)
Updating samples\makefile.vc

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

20 files changed:
samples/makefile.dos
samples/makefile.vc
src/common/cmndata.cpp
src/common/file.cpp
src/common/image.cpp
src/common/list.cpp
src/common/odbc.cpp
src/common/resource.cpp
src/generic/gridg.cpp
src/msw/bitmap.cpp
src/msw/curico.cpp
src/msw/dc.cpp
src/msw/dcprint.cpp
src/msw/dib.cpp
src/msw/dibutils.cpp
src/msw/makefile.vc
src/msw/mdi.cpp
src/msw/minifram.cpp
utils/tex2rtf/src/htmlutil.cpp
utils/tex2rtf/src/makefile.vc

index 8537373e549ae36164430d2a8c62619b1dbe51bb..74eb211d9c23d1f10de82bc14b4e7b2721843eaa 100644 (file)
@@ -23,10 +23,6 @@ THISDIR=$(WXDIR)\samples
 NOMAKE=1
 # No 16 bit version
 ONLY32=1
-# PNG unresolved
-PNGSETUP=1
-# DND not set in setup.h
-DNDSETUP=1
 # Misc. compilation errors
 COMPIL=1
 
@@ -54,7 +50,7 @@ all:
         nmake -f makefile.dos FINAL=$(FINAL)
         cd $(WXDIR)\samples\dialogs
         nmake -f makefile.dos FINAL=$(FINAL)
-!if "$(DNDSETUP)"==""
+!if "$(ONLY32)"==""
         cd $(WXDIR)\samples\dnd
         nmake -f makefile.dos FINAL=$(FINAL)
 !endif
@@ -78,10 +74,8 @@ all:
         cd $(WXDIR)\samples\html
         nmake -f makefile.dos FINAL=$(FINAL)
 !endif
-!if "$(PNGSETUP)"==""
         cd $(WXDIR)\samples\image
         nmake -f makefile.dos FINAL=$(FINAL)
-!endif
         cd $(WXDIR)\samples\internat
         nmake -f makefile.dos FINAL=$(FINAL)
         cd $(WXDIR)\samples\joytest
@@ -136,10 +130,8 @@ all:
         cd $(WXDIR)\samples\sashtest
         nmake -f makefile.dos FINAL=$(FINAL)
 !endif
-!if "$(PNGSETUP)"==""
         cd $(WXDIR)\samples\scroll
         nmake -f makefile.dos FINAL=$(FINAL)
-!endif
         cd $(WXDIR)\samples\splitter
         nmake -f makefile.dos FINAL=$(FINAL)
 !if "$(COMPIL)"==""
@@ -156,10 +148,8 @@ all:
 !endif
         cd $(WXDIR)\samples\toolbar
         nmake -f makefile.dos FINAL=$(FINAL)
-!if "$(PNGSETUP)"==""
         cd $(WXDIR)\samples\treectrl
         nmake -f makefile.dos FINAL=$(FINAL)
-!endif
 !if "$(COMPIL)"==""
         cd $(WXDIR)\samples\typetest
         nmake -f makefile.dos FINAL=$(FINAL)
index bd495eae05986bcd7721124c310f46de02cae7cb..d11885030622a1ccfb09944280907bef0dc845c6 100644 (file)
@@ -7,7 +7,7 @@
 #
 # "%W% %G%"
 #
-# Makefile : Builds samples for Win95, MSVC++ 4.0
+# Makefile : Builds samples for Win95, MSVC++ 16-bit
 # Use FINAL=1 argument to nmake to build final version with no debugging
 # info
 
@@ -16,167 +16,258 @@ WXDIR = $(WXWIN)
 
 THISDIR=$(WXDIR)\samples
 
-!include $(WXDIR)\src\makevc.env
+#
+# Indicates kind of pb with samples
+#
+# No makefile.vc file
+NOMAKE=1
+# No 16 bit version
+#ONLY32=1
+# Misc. compilation errors
+COMPIL=1
+# Need PNG
+PNGSETUP=1
 
-DEBUG_FLAGS="/Zi /FR"
-LINK_DEBUG_FLAGS="/RELEASE"
+!include $(WXDIR)\src\makemsc.env
 
+#
+# Please keep samples list up-to-date, in alphabetical order
+#
 all:
-        cd $(WXDIR)\samples\splitter
+        cd $(WXDIR)\samples\bombs
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\resource
+        cd $(WXDIR)\samples\caret
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\checklst
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\config
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\controls
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\listctrl
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\db
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\treectrl
+!endif
+        cd $(WXDIR)\samples\dde
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\validate
+        cd $(WXDIR)\samples\dialogs
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\mdi
+        cd $(WXDIR)\samples\dnd
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\minimal
+        cd $(WXDIR)\samples\docview
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\layout
+        cd $(WXDIR)\samples\docvwmdi
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\printing
+        cd $(WXDIR)\samples\drawing
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\toolbar
+        cd $(WXDIR)\samples\dynamic
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\dialogs
+        cd $(WXDIR)\samples\forty
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\docview
+        cd $(WXDIR)\samples\fractal
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\docvwmdi
+        cd $(WXDIR)\samples\grid
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\controls
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\help
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\nativdlg
+!endif
+!if "$(PNGSETUP)"==""
+        cd $(WXDIR)\samples\html
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\grid
+!endif
+        cd $(WXDIR)\samples\image
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\internat
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\dnd
-        nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\joytest
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\taskbar
+        cd $(WXDIR)\samples\layout
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\sashtest
+        cd $(WXDIR)\samples\listctrl
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\config
+        cd $(WXDIR)\samples\mdi
         nmake -f makefile.vc FINAL=$(FINAL)
 !if "$(FINAL)" == "0"
         cd $(WXDIR)\samples\memcheck
+        nmake -f makefile.vc FINAL=$(FINAL)
 !endif
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\mfc
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\ownerdrw
+!endif
+        cd $(WXDIR)\samples\minifram
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\checklst
+        cd $(WXDIR)\samples\minimal
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\minifram
+        cd $(WXDIR)\samples\nativdlg
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\bombs
+        cd $(WXDIR)\samples\notebook
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\fractal
+        cd $(WXDIR)\samples\oleauto
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\wxpoem
+        cd $(WXDIR)\samples\ownerdrw
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\typetest
+        cd $(WXDIR)\samples\png
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\printing
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\proplist
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\image
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\regtest
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\dde
-        nmake -f client.vc FINAL=$(FINAL)
-        nmake -f server.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\caret
+!endif
+        cd $(WXDIR)\samples\resource
         nmake -f makefile.vc FINAL=$(FINAL)
-        cd $(WXDIR)\samples\drawing
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\richedit
+        nmake -f makefile.vc FINAL=$(FINAL)
+!endif
+        cd $(WXDIR)\samples\sashtest
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\scroll
         nmake -f makefile.vc FINAL=$(FINAL)
-#        cd $(WXDIR)\samples\regtest
-#        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\splitter
+        nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\tab
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\taskbar
+        nmake -f makefile.vc FINAL=$(FINAL)
+!endif
+        cd $(WXDIR)\samples\text
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\thread
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\toolbar
+        nmake -f makefile.vc FINAL=$(FINAL)
+        cd $(WXDIR)\samples\treectrl
+        nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\typetest
+        nmake -f makefile.vc FINAL=$(FINAL)
+!endif
+        cd $(WXDIR)\samples\validate
+        nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(NOMAKE)"==""
+        cd $(WXDIR)\samples\wizard
+        nmake -f makefile.vc FINAL=$(FINAL)
+!endif
+        cd $(WXDIR)\samples\wxpoem
+        nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(COMPIL)"==""
+        cd $(WXDIR)\samples\wxsocket
+        nmake -f makefile.vc FINAL=$(FINAL)
+!endif
 
 clean:
-        cd $(WXDIR)\samples\splitter
-        nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\mdi
-        nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\minimal
+        cd $(WXDIR)\samples\bombs
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\layout
+        cd $(WXDIR)\samples\caret
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\printing
+        cd $(WXDIR)\samples\checklst
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\toolbar
+        cd $(WXDIR)\samples\config
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\dialogs
+        cd $(WXDIR)\samples\controls
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\resource
+        cd $(WXDIR)\samples\db
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\listctrl
+        cd $(WXDIR)\samples\dde
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\treectrl
+        cd $(WXDIR)\samples\dialogs
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\validate
+        cd $(WXDIR)\samples\dnd
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\docview
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\docvwmdi
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\controls
+        cd $(WXDIR)\samples\drawing
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\nativdlg
+        cd $(WXDIR)\samples\dynamic
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\forty
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\fractal
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\grid
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\internat
+        cd $(WXDIR)\samples\help
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\checklst
+        cd $(WXDIR)\samples\html
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\ownerdrw
+        cd $(WXDIR)\samples\image
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\dnd
+        cd $(WXDIR)\samples\internat
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\joytest
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\regtest
-        nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\taskbar
+        cd $(WXDIR)\samples\layout
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\sashtest
+        cd $(WXDIR)\samples\listctrl
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\config
+        cd $(WXDIR)\samples\mdi
         nmake -f makefile.vc clean
+!if "$(FINAL)" == "0"
         cd $(WXDIR)\samples\memcheck
         nmake -f makefile.vc clean
+!endif
+        cd $(WXDIR)\samples\mfc
+        nmake -f makefile.vc clean
         cd $(WXDIR)\samples\minifram
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\bombs
+        cd $(WXDIR)\samples\minimal
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\fractal
+        cd $(WXDIR)\samples\nativdlg
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\wxpoem
+        cd $(WXDIR)\samples\notebook
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\typetest
+        cd $(WXDIR)\samples\oleauto
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\ownerdrw
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\png
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\printing
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\proplist
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\image
+        cd $(WXDIR)\samples\regtest
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\dde
-        nmake -f client.vc clean
-        nmake -f server.vc clean
-        cd $(WXDIR)\samples\caret
+        cd $(WXDIR)\samples\resource
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples\drawing
+        cd $(WXDIR)\samples\richedit
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\sashtest
         nmake -f makefile.vc clean
         cd $(WXDIR)\samples\scroll
         nmake -f makefile.vc clean
-        cd $(WXDIR)\samples
+        cd $(WXDIR)\samples\splitter
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\tab
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\taskbar
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\text
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\thread
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\toolbar
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\treectrl
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\typetest
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\validate
+        nmake -f makefile.vc clean
+!if "$(NOMAKE)"==""
+        cd $(WXDIR)\samples\wizard
+        nmake -f makefile.vc clean
+!endif
+        cd $(WXDIR)\samples\wxpoem
+        nmake -f makefile.vc clean
+        cd $(WXDIR)\samples\wxsocket
+        nmake -f makefile.vc clean
 
index b9c2c8fc0b2a7f6708d0dd450ee6ce59a03caa1d..1d00b53bf7d3ac0074e0f756aa29629130c928ef 100644 (file)
@@ -219,7 +219,7 @@ wxPrintData::wxPrintData(const wxPrintData& printData)
 wxPrintData::~wxPrintData()
 {
 #ifdef __WXMSW__
-    HGLOBAL hDevMode = (HGLOBAL) m_devMode;
+    HGLOBAL hDevMode = (HGLOBAL)(DWORD) m_devMode;
     if (hDevMode )
         GlobalFree(hDevMode);
 #endif
@@ -264,7 +264,7 @@ static wxString wxGetPrintDlgError()
 
 void wxPrintData::ConvertToNative()
 {
-    HGLOBAL hDevMode = (HGLOBAL) m_devMode;
+    HGLOBAL hDevMode = (HGLOBAL)(DWORD) m_devMode;
     if (!hDevMode)
     {
         // Use PRINTDLG as a way of creating a DEVMODE object
@@ -435,7 +435,7 @@ void wxPrintData::ConvertToNative()
 
 void wxPrintData::ConvertFromNative()
 {
-    HGLOBAL hDevMode = (HGLOBAL) m_devMode;
+    HGLOBAL hDevMode = (HGLOBAL)(DWORD) m_devMode;
 
     if (!hDevMode)
         return;
@@ -755,7 +755,7 @@ void wxPrintDialogData::ConvertToNative()
         GlobalFree(pd->hDevMode);
     }
 
-    pd->hDevMode = (HGLOBAL) m_printData.GetNativeData();
+    pd->hDevMode = (HGLOBAL)(DWORD) m_printData.GetNativeData();
 
     m_printData.SetNativeData((void*) NULL);
 
@@ -817,7 +817,7 @@ void wxPrintDialogData::ConvertFromNative()
         if (m_printData.GetNativeData())
         {
             // Make sure we don't leak memory
-            GlobalFree((HGLOBAL) m_printData.GetNativeData());
+            GlobalFree((HGLOBAL)(DWORD) m_printData.GetNativeData());
         }
         m_printData.SetNativeData((void*) pd->hDevMode);
         pd->hDevMode = NULL;
index 6b65c35e828f9bd977c3d460b134b04e96e78d65..459e3d3709904090134de7713f01b6be7f9e4056 100644 (file)
@@ -500,7 +500,7 @@ bool wxTempFile::Open(const wxString& strName)
     if ( !GetTempFileName(strPath, _T("wx_"),0, m_strTemp.GetWriteBuf(MAX_PATH)) )
 #else
         // Not sure why MSVC++ 1.5 header defines first param as BYTE - bug?
-        if ( !GetTempFileName((BYTE) (const wxChar*) strPath, _T("wx_"),0, m_strTemp.GetWriteBuf(MAX_PATH)) )
+        if ( !GetTempFileName((BYTE) (DWORD)(const wxChar*) strPath, _T("wx_"),0, m_strTemp.GetWriteBuf(MAX_PATH)) )
 #endif
             wxLogLastError(_T("GetTempFileName"));
     m_strTemp.UngetWriteBuf();
index ac9acecf15f8fc0e932857464e028c0f270abab7..ab36e52be6d04b5260e104fd2823efe0c9cd274f 100644 (file)
@@ -682,7 +682,11 @@ wxBitmap wxImage::ConvertToBitmap() const
         return wxNullBitmap;
 
     // sizeLimit is the MS upper limit for the DIB size
+#ifdef  WIN32
     int sizeLimit = 1024*768*3;
+#else
+    int sizeLimit = 0x7fff ;
+#endif
 
     // width and height of the device-dependent bitmap
     int width = GetWidth();
index 8196c3eb26734f08706411bd4423aac34a8c602b..48a91d0d9ecdab1ffd70ff0179565db3cec6050c 100644 (file)
@@ -563,7 +563,7 @@ wxStringList::wxStringList (const wxChar *first, ...)
       s = va_arg(ap, const wxChar *);
       //    if (s == NULL)
 #ifdef __WXMSW__
-      if ((int) s == 0)
+      if ((int)(long) s == 0)
 #else
       if ((long) s == 0)
 #endif
index f82a986409db28e6e0a71ec989f71785260444b3..224738bda46f9d36e19ad462fefe79e655ad90d0 100644 (file)
@@ -443,7 +443,7 @@ float wxDatabase::GetODBCVersionFloat(bool implementation)
   if (retcode == SQL_ERROR)
     return 0.0;
   else
-    return atof(buf);
+    return (float)atof(buf);
 }
 
 /*
index 5e4842f6b394cffac2e9e177e88785282a5f1ab5..47f9a2afba688dacd4f10660ce9fc25772f3fb0d 100644 (file)
@@ -2504,7 +2504,7 @@ int wxResourceGetIdentifier(const wxString& name, wxResourceTable *table)
   if (!table)
     table = wxDefaultResourceTable;
 
-  return (int)table->identifiers.Get(name);
+  return (int)(long)table->identifiers.Get(name);
 }
 
 /*
index b8ccc24fc71d721eb9fc2c984912c6ee4e93a52a..cb590108cbf6988ca8d2c6b9bbc1dab649c65b6a 100644 (file)
@@ -1786,21 +1786,21 @@ void wxGenericGrid::DrawTextRect(wxDC *dc, const wxString& text, wxRect *rect, i
   {
     case wxRIGHT:
     {
-      x = (rect->x + rect->width - textWidth - 1.0);
-      y = (rect->y + (rect->height - textHeight)/2.0);
+      x = (rect->x + rect->width - textWidth - (float)1.0);
+      y = (rect->y + (rect->height - textHeight)/(float)2.0);
       break;
     }
     case wxCENTRE:
     {
-      x = (rect->x + (rect->width - textWidth)/2.0);
-      y = (rect->y + (rect->height - textHeight)/2.0);
+      x = (rect->x + (rect->width - textWidth)/(float)2.0);
+      y = (rect->y + (rect->height - textHeight)/(float)2.0);
       break;
     }
     case wxLEFT:
     default:
     {
-      x = (rect->x + 1.0);
-      y = (rect->y + (rect->height - textHeight)/2.0);
+      x = (rect->x + (float)1.0);
+      y = (rect->y + (rect->height - textHeight)/(float)2.0);
       break;
     }
   }
index 29926d61d2a56b25285f62832f0c1cf53e9180ce..40b199abce3577814410460199039cfc1db26ddb 100644 (file)
@@ -80,7 +80,7 @@ wxBitmapRefData::~wxBitmapRefData()
   if (m_selectedInto)
   {
     wxChar buf[200];
-    wxSprintf(buf, _T("Bitmap was deleted without selecting out of wxMemoryDC %X."), (unsigned int) m_selectedInto);
+    wxSprintf(buf, _T("Bitmap was deleted without selecting out of wxMemoryDC %lX."), (unsigned long) m_selectedInto);
     wxFatalError(buf);
   }
   if (m_hBitmap)
@@ -146,7 +146,7 @@ bool wxBitmap::FreeResource(bool WXUNUSED(force))
   if (M_BITMAPDATA->m_selectedInto)
   {
     wxChar buf[200];
-    wxSprintf(buf, _T("Bitmap %X was deleted without selecting out of wxMemoryDC %X."), (unsigned int) this, (unsigned int) M_BITMAPDATA->m_selectedInto);
+    wxSprintf(buf, _T("Bitmap %lX was deleted without selecting out of wxMemoryDC %lX."), (unsigned long) this, (unsigned long) M_BITMAPDATA->m_selectedInto);
     wxFatalError(buf);
   }
   if (M_BITMAPDATA->m_hBitmap)
index 5bd16e67a0867a723c2a7cfef1e51587e2424dc0..518563ba23bde8d6a00439cbe36f0c25025de0cc 100644 (file)
@@ -113,7 +113,7 @@ HANDLE ReadIcon( wxChar *szFileName, int *W, int *H)
     return (HANDLE) NULL;
 
   // inserted by P.S.
-  while( (nDirEntries < iconFileHead.wResourceCount) &&
+  while( ((unsigned)nDirEntries < iconFileHead.wResourceCount) &&
          ((iconFileRes.bWidth != nWidth) || (iconFileRes.bHeight != nHeight)))
   {
     cbRes = _lread( hFile, (LPSTR )&iconFileRes, sizeof( ICONFILERES));
@@ -361,7 +361,7 @@ HANDLE ReadCur( wxChar *szFileName, LPPOINT lpptHotSpot, int *W, int *H)
     return (HANDLE) NULL;
 
   // following added by P.S.
-  while( (nDirEntries < curFileHead.wResourceCount) &&
+  while( ((unsigned)nDirEntries < curFileHead.wResourceCount) &&
          ((curFileRes.bWidth != nWidth) || (curFileRes.bHeight != nHeight)))
   {
     cbRes = _lread( hFile, (LPSTR )&curFileRes, sizeof( CURFILERES));
index f424405768d840d002d44ca63677659eaf6162f9..fa195426e2602c671aeadc57820e3f1e5f60a9b8 100644 (file)
@@ -377,8 +377,8 @@ void wxDC::DoDrawArc(long x1,long y1,long x2,long y2, long xc, long yc)
         Arc(GetHdc(),xxx1,yyy1,xxx2,yyy2,
         xx1,yy1,xx2,yy2);
 
-    CalcBoundingBox((xc-radius), (yc-radius));
-    CalcBoundingBox((xc+radius), (yc+radius));
+    CalcBoundingBox((long)(xc-radius), (long)(yc-radius));
+    CalcBoundingBox((long)(xc+radius), (long)(yc+radius));
 }
 
 void wxDC::DoDrawPoint(long x, long y)
index bd7399b58c8bfa9f0a4f9d642581b51742778d81..fbd402eec5b95cac9ac877ee5e185246bb5fc37f 100644 (file)
@@ -361,7 +361,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
 
     LPDEVMODE lpDevMode = (LPDEVMODE) NULL;
 
-    HGLOBAL hDevMode = (HGLOBAL) printData.GetNativeData();
+    HGLOBAL hDevMode = (HGLOBAL)(DWORD) printData.GetNativeData();
 
     if ( hDevMode )
         lpDevMode = (DEVMODE*) GlobalLock(hDevMode);
index e4f8360ad673c4f0f87f777121c3e87e05d3ed90..c488c6e19eb17b4f29846bc8975c34b7f1c257fb 100644 (file)
@@ -647,7 +647,7 @@ HPALETTE MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
 #ifdef __WXWINE__
         return (FALSE);
 #else
-    NPLOGPALETTE npPal;
+    LPLOGPALETTE npPal;
     RGBQUAD far *lpRGB;
     HPALETTE hLogPal;
     WORD i;
@@ -661,7 +661,7 @@ HPALETTE MakeDIBPalette(LPBITMAPINFOHEADER lpInfo)
        npPal = (NPLOGPALETTE)LocalAlloc(LMEM_FIXED, sizeof(LOGPALETTE) +
                                (WORD)lpInfo->biClrUsed * sizeof(PALETTEENTRY));
 */
-       npPal = (NPLOGPALETTE)malloc(sizeof(LOGPALETTE) +
+       npPal = (LPLOGPALETTE)malloc(sizeof(LOGPALETTE) +
                                (WORD)lpInfo->biClrUsed * sizeof(PALETTEENTRY));
         if (!npPal)
            return(FALSE);
index 31bcfb7e29144c0c9b5b45d61ffebd8e2349507f..923135a2a46aabda0f4b0528b935c99a7ae6277d 100644 (file)
@@ -716,7 +716,7 @@ HPALETTE MakePalette(const BITMAPINFO FAR* Info, UINT flags)
 
    logPal->palVersion  = 0x300; // Windows 3.0 version
    logPal->palNumEntries = nColors;
-   for (short n = 0; n < nColors; n++) {
+   for (WORD n = 0; n < nColors; n++) {
     logPal->palPalEntry[n].peRed   = rgb[n].rgbRed;
     logPal->palPalEntry[n].peGreen = rgb[n].rgbGreen;
     logPal->palPalEntry[n].peBlue  = rgb[n].rgbBlue;
index 1f826d00fb30d9996d907e3a544667a09fffbf5f..13a878eeb242d5f84195cd627bdfb8f80aaa9cc5 100644 (file)
@@ -674,25 +674,29 @@ $(DOCDIR)/latex/techref/techref.rtf:         $(DOCDIR)/latex/techref/techref.tex
 
 $(DOCDIR)/pdf/wx.rtf:         $(DOCDIR)/latex/wx/classes.tex $(DOCDIR)/latex/wx/body.tex $(DOCDIR)/latex/wx/topics.tex $(DOCDIR)/latex/wx/manual.tex
         cd $(DOCDIR)\latex\wx
-        -copy *.bmp *.wmf $(DOCDIR)\pdf
+        -copy *.wmf $(DOCDIR)\pdf
+        -copy *.bmp $(DOCDIR)\pdf
         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/wx/manual.tex $(DOCDIR)/pdf/wx.rtf -twice -rtf
         cd $(THISDIR)
 
 $(DOCDIR)/pdf/porting.rtf:         $(DOCDIR)/latex/porting/porting.tex
         cd $(DOCDIR)\latex\porting
-        -copy *.bmp *.wmf $(DOCDIR)\pdf
+        -copy *.wmf $(DOCDIR)\pdf
+        -copy *.bmp $(DOCDIR)\pdf
         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/porting/porting.tex $(DOCDIR)/pdf/porting.rtf -twice -rtf
         cd $(THISDIR)
 
 $(DOCDIR)/pdf/prop.rtf:         $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/latex/proplist/body.tex $(DOCDIR)/latex/proplist/classes.tex $(DOCDIR)/latex/proplist/changes.tex
         cd $(DOCDIR)\latex\proplist
-        -copy *.bmp *.wmf $(DOCDIR)\pdf
+        -copy *.bmp $(DOCDIR)\pdf
+        -copy *.wmf $(DOCDIR)\pdf
         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/proplist/prop.tex $(DOCDIR)/pdf/prop.rtf -twice -rtf
         cd $(THISDIR)
 
 $(DOCDIR)/pdf/techref.rtf:         $(DOCDIR)/latex/techref/techref.tex
         cd $(DOCDIR)\latex\techref
-        -copy *.bmp *.wmf $(DOCDIR)\pdf
+        -copy *.wmf $(DOCDIR)\pdf
+        -copy *.bmp $(DOCDIR)\pdf
         -start $(WAITFLAG) tex2rtf $(DOCDIR)/latex/techref/techref.tex $(DOCDIR)/pdf/techref.rtf -twice -rtf
         cd $(THISDIR)
 
index 499c4f49720714dcb16d3d9d7e8cac226ab665d0..cfd5d647cefa452ef1108a4b110640d69d2c9d23 100644 (file)
@@ -482,7 +482,7 @@ bool wxMDIParentFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND hwnd)
             if ( child->GetHWND() )
             {
                 long childId = wxGetWindowId(child->GetHWND());
-                if (childId == id)
+                if (childId == (long)id)
                 {
                     ::SendMessage( GetWinHwnd(GetClientWindow()),
                                    WM_MDIACTIVATE,
index 819e0b01d3e20bebfb8683d233a52a09d1101c70..aee0054b642f3f8ed2ffe5819146daf4b9596582 100644 (file)
@@ -983,7 +983,7 @@ BOOL PASCAL DrawCaption( HDC hDC, HWND hWnd, LPRECT lprc,
             SetBkMode( hDC, nBkMode ) ;
             
 #ifdef __WIN16__
-            GlobalFreePtr( (unsigned int) lpsz ) ;
+            GlobalFreePtr( (unsigned int)(DWORD) lpsz ) ;
 #else
             GlobalFreePtr( lpsz ) ;
 #endif
index d29e17b7f3f24ec2b491ef1798d1f2a8516304da..487fb97a62f4ddd045c7b60fff1f74a080b951e1 100644 (file)
@@ -2021,7 +2021,7 @@ bool HTMLOnArgument(int macroId, int arg_no, bool start)
       if (imageFile)
         delete[] imageFile;
       imageFile = NULL;
-      if (f)
+      if (!f.IsEmpty())
       {
         imageFile = copystring(f);
       }
index fb16a0e0984a55e65fce6ca14b0ba14d90b18d13..bf9327aca75cddd0c5793bd2974e2f60e97b3abd 100644 (file)
@@ -110,7 +110,8 @@ $(LOCALDOCDIR)\tex2rtf.rtf: $(DOCSOURCES)
 
 $(DOCDIR)\pdf\tex2rtf.rtf: $(DOCSOURCES)
         cd $(LOCALDOCDIR)
-        -copy *.bmp *.wmf $(DOCDIR)\pdf
+        -copy *.wmf $(DOCDIR)\pdf
+        -copy *.bmp $(DOCDIR)\pdf
         -start /w tex2rtf $(LOCALDOCDIR)\tex2rtf.tex $(DOCDIR)\pdf\tex2rtf.rtf -twice -rtf
         cd $(THISDIR)