Date: Wed, 22 Jan 1997 00:44:40 -0100 From: Tage Westlund Yesterday I mailed items A - C. Later I have received a mail (via the list) written by Dr Wong which inspired me to make a better adaptation of the code to gnu-win32-b17.1 -------------------------- My version of C/C++ is Cygnus gnu-win32-b17.1 My version ov V is V 1.15 imported as file vwin115.zip -------------------------- A*** I modified win32-file "Defines.h" according to instructions attached to the makefiles: /* CreateFont */ #define FW_DONTCARE (0) #define FW_THIN (100) #define FW_EXTRALIGHT (200) #define FW_LIGHT (300) #define FW_NORMAL (400) #define FW_REGULAR FW_NORMAL /* FW_REGULAR added for cyg-win32 by TW */ #define FW_MEDIUM (500) -------------------------- B*** and also win32-file "Structures.h" of the same reason: typedef struct { DWORD style; DWORD dwExtendedStyle; short x; short y; short cx; short cy; WORD id; } PACKED DLGITEMTEMPLATE; typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATE; typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATE; /* two lines above added for cyg-win32 by TW */ -------------------------- C*** and in the V-file "SRCWIN/Vcmdprnt.cpp" as suggested in delivery: //======================>>> vCmdParent::vCmdParent <<<============= static void CopyStringToDialog (LPSTR *inp, LPSTR src) { int nChar = 0; // TW removed two occurrences of the word "far" // DIALOG_CHAR far *in = (DIALOG_CHAR far *)(*inp); DIALOG_CHAR *in = (DIALOG_CHAR *)(*inp); (see also F below) -------------------------- D*** I made a copy cstring.h of string.h in the same directory /Cygnus/H-i.../i .../include/cstring.h -------------------------- E*** In INCLUDEW/V/V_defs.h I altered: #include became #include -------------------------- F*** In SRCWIN/Vcmdprnt.cpp #include became #include ( did Dr Wong mean this? ) -------------------------- AMONG DEMOS AND TESTS: -------------------------- G*** In APPGEN/Vgcode.cpp I altered: #include became #include -------------------------- H*** In ICONED/Imageio.cpp I altered: #include became #include and also the three defines that Dr Wong found had to be discarded. Otherwise I got compilation errors. ( automatically having them declared somewhere else ) // Defines for BMP files // TW removed three lines below // #define BI_RGB 0 // #define BI_RLE8 1 // #define BI_RLE4 2 --------------------------- I*** Two adjustments to the Makefiles that are attached: In EXAMP/makeexamp.cygnus the line HOMEV = .. is not there and in the line VLibDir = $(HOMEV)/v/lib/$(Arch) it is better to remove "/v" --------------------------- When compiling TEST/Vtcmdwin.cpp I got the following warning: g++ -c -O -I../INCLUDEW -o ../obj/intel/vtcmdwin.o vtcmdwin.cpp vtcmdwin.cpp: In method `void testCmdWindow::WindowCommand(int, int, enum CmdType)': vtcmdwin.cpp:892: warning: initialization of non-const reference `class vColor &' from rvalue `vColor' ../INCLUDEW/v/vcanvas.h:196: warning: in passing argument 1 of `vCanvasPane::SetBackground(vColor &)' Linking V1 g++ -o ../bin/intel/v1 -L ../lib/intel ../obj/intel/testapp.o ../obj/intel/vtcanvas.o ../obj/intel/vtcmdwin.o ../obj/intel/vtcw2.o ../obj/intel/vttogdlg.o ../obj/intel/vtdialog.o -lV -mwindows I have not altered anything because of that. It is the only remaining error report from the whole V software at installation. --------------------------- Best regards! Tage Westlund