# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
-all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex
+all: MAKEARCHDIR MAKELIBS $(LIBTARGET) zlib png jpeg tiff regex
MAKEARCHDIR:
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
-MAKEWINSOCKLIB:
- if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll
-## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll
-## bug here on win98 no system32 ??
-## implib doesn't work anyway
-## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
-##@if not exist $(WINSOCKLIB)
+#build our own copies of missing libraries
+MAKELIBS:
+ implib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
+ implib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
$(LIBTARGET): $(OBJECTS)
-del $(LIBTARGET)
EXPORTS
_ExtractIconA@12 = ExtractIconA
_ExtractIconExA@20 = ExtractIconExA
+ _DragQueryPoint@8 = DragQueryPoint
+ _DragFinish@4 = DragFinish
+ _DragQueryFileA@16 = DragQueryFileA
+ _DragAcceptFiles@8 = DragAcceptFiles
+
-# Symantec C++ makefile
+# Digital Mars / Symantec C++ makefile
WXDIR = ..\..
TARGET=mdi
include $(WXDIR)\src\makeprog.sc
-# Symantec C++ makefile
-
-WXDIR = $(WXWIN)
-WXLIB = $(WXDIR)\lib\wx.lib
-INCDIR = $(WXDIR)\include
-INCLUDE=$(INCDIR)
+# Digital Mars / Symantec C++ makefile
+WXDIR = ..\..
TARGET=minimal
-
-include $(WXDIR)\src\makesc.env
-
-minimal.exe: minimal.obj
- link $(LDFLAGS) $*, $@, $*, $(LIBS)
-
-
-sc32.def:
- echo EXETYPE NT > sc32.def
- echo SUBSYSTEM WINDOWS >> sc32.def
-
-sc16.def:
- echo NAME $(TARGET) > sc16.def
- echo EXETYPE WINDOWS >> sc16.def
- echo STUB 'WINSTUB.EXE' >> sc16.def
- echo CODE PRELOAD MOVEABLE DISCARDABLE >> sc16.def
- echo DATA PRELOAD MOVEABLE MULTIPLE >> sc16.def
- echo HEAPSIZE 1024 >> sc16.def
- echo STACKSIZE 8192 >> sc16.def
-
-clean:
- -del *.obj
- -del *.exe
- -del *.res
- -del *.map
- -del *.rws
- -del sc32.def
- -del sc16.def
-
+include $(WXDIR)\src\makeprog.sc
ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
LIBDIR = $(WXDIR)\lib
WXLIB = wx$(SC_SUFFIX).lib
-WINSOCKLIB = $(LIBDIR)\winsock$(SC_SUFFIX).lib
-SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX)
+WINSOCKLIB = wsock32$(SC_SUFFIX)
+SHELLLIB = shell32$(SC_SUFFIX)
+SUPPORTLIBS = png$(SC_SUFFIX) tiff$(SC_SUFFIX) jpeg$(SC_SUFFIX) zlib$(SC_SUFFIX) $(SHELLLIB) $(WINSOCKLIB)
SRCSUFF = cpp
OBJSUFF = obj
CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
LINKER = link
LDFLAGS = $(EXTRALDFLAGS)
-LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid $(WINSOCKLIB)
+LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid
DEFFILE=sc32.def
.$(SRCSUFF).obj:
long WXUNUSED(flags),
int desiredWidth, int desiredHeight)
{
-#ifdef __DIGITALMARS__
-//FIXME __DIGITALMARS__ April 2003 CE
- // why no ExtractIcon in library
- wxLogTrace(_T("iconload"),
- _T("Returning false from wxICOFileHandler::Load because of DigitalMars compiler bug"));
-
- return false;
-#else
icon->UnRef();
// actual size
icon->SetSize(size.x, size.y);
return icon->Ok();
-#endif // Digitalmars
}
bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
-all: MAKEARCHDIR MAKEWINSOCKLIB $(LIBTARGET) zlib png jpeg tiff regex
+all: MAKEARCHDIR MAKELIBS $(LIBTARGET) zlib png jpeg tiff regex
MAKEARCHDIR:
@if not exist $(MSWINCDIR)\setup.h copy $(MSWINCDIR)\setup0.h $(MSWINCDIR)\setup.h
@if not exist $(ARCHINCDIR)\wx\setup.h mkdir $(ARCHINCDIR)\wx
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
-MAKEWINSOCKLIB:
- implib /s $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll
-## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
-## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\wsock32.dll
-## bug here on win98 no system32 ??
-## implib doesn't work anyway
-## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
-##@if not exist $(WINSOCKLIB)
+#build our own copies of missing libraries
+MAKELIBS:
+ implib /s $(LIBDIR)\$(SHELLLIB) $(LIBDIR)\$(SC_SUFFIX)\$(SHELLLIB).def
+ implib /s $(LIBDIR)\$(WINSOCKLIB) $(LIBDIR)\$(SC_SUFFIX)\$(WINSOCKLIB).def
$(LIBTARGET): $(OBJECTS)
-del $(LIBTARGET)
wxString strExpPath = wxExpandEnvVars(strFullPath);
// here we need C based counting!
int nIndex = wxAtoi(strIndex);
-#ifdef __DIGITALMARS__
-//FIXME __DIGITALMARS__ April 2003 CE
- // why no ExtractIcon in library
- wxLogTrace(_T("wxFileTypeImpl::GetIcon"),
- _T("Returning false from wxFileTypeImpl::GetIcon because of DigitalMars compiler bug"));
- HICON hIcon = 0 ;
-#else
HICON hIcon = ExtractIcon(GetModuleHandle(NULL), strExpPath, nIndex);
-#endif
+
switch ( (int)hIcon ) {
case 0: // means no icons were found
case 1: // means no such file or it wasn't a DLL/EXE/OCX/ICO/...
bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *pData)
{
-//FIX ME __DIGITALMARS__
-#if defined (__DIGITALMARS__)
- //DragQueryFile not in any library
- wxLogDebug(wxT("In wxFileDataObject::SetData code not executed - no Digital Mars library "));
- return FALSE;
-#endif
m_filenames.Empty();
// the documentation states that the first member of DROPFILES structure is
// shouldn't use winsock.dll (a.k.a. ws2_32.dll) at all so only use this
// code if we link with it anyhow
#if wxUSE_SOCKETS
- //FIXME __DIGITALMARS__ why is using sockets not properly turned off in setup.h ??
- // find which library should contain sockets for Digital Mars CE April 2003
-#ifndef __DIGITALMARS__
+
WSADATA wsa;
if ( WSAStartup(MAKEWORD(1, 1), &wsa) == 0 )
{
return TRUE;
}
}
-#endif //__DIGITALMARS__
#endif // wxUSE_SOCKETS
// drag and drop
// ---------------------------------------------------------------------------
-//FIXME __DIGITALMARS__ does not honor drag drop in setup.h
#if wxUSE_DRAG_AND_DROP
void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget)
{
-#ifndef __DIGITALMARS__
if ( m_dropTarget != 0 ) {
m_dropTarget->Revoke(m_hWnd);
delete m_dropTarget;
m_dropTarget = pDropTarget;
if ( m_dropTarget != 0 )
m_dropTarget->Register(m_hWnd);
-#endif // __DIGITALMARS__
}
#endif // wxUSE_DRAG_AND_DROP
// DragAcceptFiles in parallel with SetDropTarget.
void wxWindowMSW::DragAcceptFiles(bool accept)
{
-#ifndef __DIGITALMARS__
HWND hWnd = GetHwnd();
if ( hWnd )
::DragAcceptFiles(hWnd, (BOOL)accept);
-#endif
}
// ----------------------------------------------------------------------------
// delete our drop target if we've got one
#if wxUSE_DRAG_AND_DROP
-#ifndef __DIGITALMARS__
if ( m_dropTarget != NULL )
{
m_dropTarget->Revoke(m_hWnd);
delete m_dropTarget;
m_dropTarget = NULL;
}
-#endif //#ifndef __DIGITALMARS__
#endif // wxUSE_DRAG_AND_DROP
// WM_DESTROY handled
bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam)
{
-//FIX ME __DIGITALMARS__
-#if defined (__WXMICROWIN__) || defined (__DIGITALMARS__)
+#if defined (__WXMICROWIN__)
return FALSE;
#else // __WXMICROWIN__
HDROP hFilesInfo = (HDROP) wParam;