Loading ...
Sorry, an error occurred while loading the content.

Patch 6.1.424 (extra)

Expand Messages
  • Bram Moolenaar
    Patch 6.1.424 (extra) Problem: Win32: Gvim compiled with VC++ 7.0 run on Windows 95 does not show menu items. Solution: Define $WINVER to avoid an extra
    Message 1 of 5 , Mar 31 10:08 AM
    • 0 Attachment
      Patch 6.1.424 (extra)
      Problem: Win32: Gvim compiled with VC++ 7.0 run on Windows 95 does not show
      menu items.
      Solution: Define $WINVER to avoid an extra item is added to MENUITEMINFO.
      (Muraoka Taro)
      Files: src/Make_mvc.mak


      *** ../vim61.423/src/Make_mvc.mak Mon Feb 17 10:21:47 2003
      --- src/Make_mvc.mak Thu Mar 20 22:02:10 2003
      ***************
      *** 182,194 ****
      CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib
      !endif

      # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
      # default, use these lines.
      #VIMRCLOC = somewhere
      #VIMRUNTIMEDIR = somewhere

      CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
      ! $(SNIFF_DEFS) $(DEFINES)

      #>>>>> end of choices
      ###########################################################################
      --- 182,199 ----
      CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib
      !endif

      + ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET)
      + !ifndef WINVER
      + WINVER = -DWINVER=0x400
      + !endif
      +
      # If you have a fixed directory for $VIM or $VIMRUNTIME, other than the normal
      # default, use these lines.
      #VIMRCLOC = somewhere
      #VIMRUNTIMEDIR = somewhere

      CFLAGS = -c /W3 /nologo $(CVARS) -I. -Iproto -DHAVE_PATHDEF -DWIN32 \
      ! $(WINVER) $(SNIFF_DEFS) $(DEFINES)

      #>>>>> end of choices
      ###########################################################################
      *** ../vim61.423/src/version.c Fri Mar 28 22:01:46 2003
      --- src/version.c Mon Mar 31 20:03:30 2003
      ***************
      *** 613,614 ****
      --- 613,616 ----
      { /* Add new patch number below this line */
      + /**/
      + 424,
      /**/

      --
      MAN: Fetchez la vache!
      GUARD: Quoi?
      MAN: Fetchez la vache!
      "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
    • Walter Briscoe
      In message of Mon, 31 Mar 2003 20:08:41 in , Bram Moolenaar writes ... When this change was
      Message 2 of 5 , Mar 31 12:49 PM
      • 0 Attachment
        In message <200303311808.h2VI8fP08776@...> of Mon, 31 Mar 2003
        20:08:41 in , Bram Moolenaar <Bram@...> writes
        >
        >Patch 6.1.424 (extra)
        >Problem: Win32: Gvim compiled with VC++ 7.0 run on Windows 95 does not show
        > menu items.
        >Solution: Define $WINVER to avoid an extra item is added to MENUITEMINFO.
        > (Muraoka Taro)
        >Files: src/Make_mvc.mak
        When this change was proposed, I asked if a corresponding change should
        be made to Make_ivc.mak; I got no response. I seem to recall that we
        were not told why the change worked. I suppose I should wait for
        somebody to complain about such a problem. I shall probably run VC 7.x
        on my next machine when I buy it. Hopefully, nobody else will use such a
        perverse combination of environment choices.
        --
        Walter Briscoe
      • Bram Moolenaar
        ... I hesitated to include this change, since I also don t quite understand how it works. The Make_bc5.mak makefile contains the same construction, that s
        Message 3 of 5 , Apr 1, 2003
        • 0 Attachment
          Walter Briscoe wrote:

          > In message <200303311808.h2VI8fP08776@...> of Mon, 31 Mar 2003
          > 20:08:41 in , Bram Moolenaar <Bram@...> writes
          > >
          > >Patch 6.1.424 (extra)
          > >Problem: Win32: Gvim compiled with VC++ 7.0 run on Windows 95 does not show
          > > menu items.
          > >Solution: Define $WINVER to avoid an extra item is added to MENUITEMINFO.
          > > (Muraoka Taro)
          > >Files: src/Make_mvc.mak
          > When this change was proposed, I asked if a corresponding change should
          > be made to Make_ivc.mak; I got no response. I seem to recall that we
          > were not told why the change worked. I suppose I should wait for
          > somebody to complain about such a problem. I shall probably run VC 7.x
          > on my next machine when I buy it. Hopefully, nobody else will use such a
          > perverse combination of environment choices.

          I hesitated to include this change, since I also don't quite understand
          how it works. The Make_bc5.mak makefile contains the same construction,
          that's probably a hint that it does work and not cause trouble.

          To try out this change requires VC 7.0, which I don't have. For
          Make_ivc.mak you have to find out what is the best place to add it. And
          to test it you need to compile Vim with VC 7.0 (probably on Win XP) and
          test it on Win 95. Only for people who have a whole row of computers!
          :-)

          --
          FIRST HEAD: Oh! quick! get the sword out I want to cut his head off.
          THIRD HEAD: Oh, cut your own head off.
          SECOND HEAD: Yes - do us all a favour.
          "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

          /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
          /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
          \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
          \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
        • Neil Bird
          Around about 01/04/2003 09:33, Bram Moolenaar typed ... ... WINVER is used to select which set of Windows headers to use, and hence define backwards
          Message 4 of 5 , Apr 1, 2003
          • 0 Attachment
            Around about 01/04/2003 09:33, Bram Moolenaar typed ...
            > I hesitated to include this change, since I also don't quite understand
            > how it works. The Make_bc5.mak makefile contains the same construction,
            > that's probably a hint that it does work and not cause trouble.

            'WINVER' is used to select which set of Windows headers to use, and
            hence define backwards compatibility. Up to and including DevStudio 6
            (which we have here), the default is 0x0400 which should give pretty
            much full backwards compatibility.

            Some of our team have had to explicitly set it to 0x0500 to engage
            some W2K features. I guess the default for DS7/.NET is now 0x0400.

            I would say that any DS build ought to specify WINVER=0x0400; I
            can't say whether WINVER is used by any other W32 compilers though.

            --
            [neil@fnx ~]# rm -f .signature
            [neil@fnx ~]# ls -l .signature
            ls: .signature: No such file or directory
            [neil@fnx ~]# exit
          • Alejandro Lopez-Valencia
            ... It is an option of the Win32 API library and headers. All compilers can use it.
            Message 5 of 5 , Apr 1, 2003
            • 0 Attachment
              At 05:47 a.m. 01/04/2003, Neil Bird wrote:
              > I would say that any DS build ought to specify WINVER=0x0400; I can't
              > say whether WINVER is used by any other W32 compilers though.

              It is an option of the Win32 API library and headers. All compilers can use it.
            Your message has been successfully submitted and would be delivered to recipients shortly.