From: Olof S. <sve...@es...> - 2001-11-09 16:49:38
|
Dear Alan, I'm working with Alessandro Mirone on the PyQt port of plplot. I'm trying to compile plplot version 5.0.4 on Windows 2000 using MS Visual Studio 6.0. I ran into several problems however I succeeded finally to build the package and use the win3 device. I have listed at the end of this message some of the patches I had to do to plplot.h in order to compile the plplot.lib win32 library (if you are interested I can provide a complete list of patches.) I'd like to know if the win32 port of plplot is still supported. Best regards, Olof Svensson -------------------------------------- plplot-5.0.4, patch to plplot/sys/win32/msdev/src/plplot.h: < #define PLESC_DOUBLEBUFFERING 15 /* configure double buffering */ < #define PLESC_XORMOD 16 /* jc: set xor mode */ < #define PLESC_SET_COMPRESSION 17 /* AFR: set compression */ < #define PLESC_CLEAR 18 /* RL: clear graphics region */ < #define PLESC_DASH 19 /* RL: draw dashed line */ < #define PLESC_HAS_TEXT 20 /* jc: driver draws text */ < c_plshade(PLFLT **a, PLINT nx, PLINT ny, PLINT (*defined) (PLFLT, PLFLT), --- > c_plshade(PLFLT **a, PLINT nx, PLINT ny, const char **defined, < c_plshade1(PLFLT *a, PLINT nx, PLINT ny, PLINT (*defined) (PLFLT, PLFLT), --- > c_plshade1(PLFLT *a, PLINT nx, PLINT ny, const char *defined, patches to plplot/sys/win32/msdev/src/win3.cpp: < wndclass.hbrBackground = (struct HBRUSH__ *)GetStockObject(WHITE_BRUSH); --- > wndclass.hbrBackground = GetStockObject(WHITE_BRUSH); < if( SetAbortProc( dev->hdc, (int(__stdcall *)(struct HDC__ *,int))AbortProc ) == SP_ERROR ) { --- > if( SetAbortProc( dev->hdc, (int(__stdcall *)(void))AbortProc ) == SP_ERROR ) { |