Christian Brabandt wrote:

> Am 2015-06-23 06:38, schrieb Ben Fritz:
> > Today I noticed that I can no longer compile gvimext.dll, due to the
> > code added in patch 724.
> > 
> > I compile with MinGW as follows:
> > 
> > make -f Make_ming.mak -j%NUMBER_OF_PROCESSORS% GUI=yes FEATURES=HUGE
> > PYTHON="C:/Python27" PYTHON_VER=27 DYNAMIC_PYTHON=yes DEBUG=yes
> > LUA="C:/LUA/lua-5.2.3" LUA_VER=52
> > 
> > Leading to the following error:
> > 
> > gvimext.cpp: In member function 'virtual HRESULT
> > CShellExt::QueryContextMenu(HMENU, UINT, UINT, UINT, UINT)':
> > gvimext.cpp:654:6: error: 'MENUITEMINFO' has no member named 'hbmpItem'
> > 
> > Commenting out the if (showIcons) code block at line 651 lets the code
> > compile, but obviously I'm missing that functionality now.
> 
> I remember a similar problem. Can you try to explicitly set the APPVER
> environment variable to 5.0 (See also the Makefile in the gvimext
> directory).
> IIRC this is the minimum version required, that supports icons in the
> menu.

Or we could add an #if in the code.  I found this:

typedef struct tagMENUITEMINFOA {
        UINT cbSize;
        UINT fMask;
        UINT fType;
        UINT fState;
        UINT wID;
        HMENU hSubMenu;
        HBITMAP hbmpChecked;
        HBITMAP hbmpUnchecked;
        DWORD dwItemData;
        LPSTR dwTypeData;
        UINT cch;
#if (_WIN32_WINNT >= 0x0500)
        HBITMAP hbmpItem;
#endif
} MENUITEMINFOA,*LPMENUITEMINFOA;

Doing both is probably best.  I would appreciate a patch from someone
who can verify it works.

-- 
"The sun oozed over the horizon, shoved aside darkness, crept along the
greensward, and, with sickly fingers, pushed through the castle window,
revealing the pillaged princess, hand at throat, crown asunder, gaping
in frenzied horror at the sated, sodden amphibian lying beside her,
disbelieving the magnitude of the frog's deception, screaming madly,
"You lied!"
    - Winner of the Bulwer-Lytton contest (San Jose State University),
      wherein one writes only the first line of a bad novel

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui