From: <no...@so...> - 2002-08-12 12:28:15
|
Support Requests item #586935, was opened at 2002-07-26 06:33 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=586935&group_id=2435 Category: None Group: None >Status: Open >Priority: 5 Submitted By: David Armour (davidarmour) >Assigned to: Luke Dunstan (infidel) Summary: windres problem Initial Comment: Just installed windres 2.12.90 hoping to resolve a problem I saw in windres 2.11.90 but it did not. My RC code is: IDC_MYACCEL ACCELERATORS BEGIN "?", IDM_ABOUT, ALT // error "/", IDM_ABOUT, ALT // error VK_F10, IDM_RUN, VIRTKEY "x", IDM_EXIT, ALT // error END With windres is gives the following error for the lines above marked //error :- "inappropriate modifiers for non-VIRTKEY" This code compiled fine with the Borland RC compiler. Can someone advise me if this is a bug or is something wrong with my code. Thanks. ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2002-08-12 08:28 Message: Logged In: YES user_id=15438 So, Luke, should the warning persist? Or, should this be patched to not issue the warning? Earnie. ---------------------------------------------------------------------- Comment By: Luke Dunstan (infidel) Date: 2002-08-11 05:19 Message: Logged In: YES user_id=30442 In windres rcparse.y: if (($$.flags & ACC_VIRTKEY) == 0 && ($$.flags & (ACC_SHIFT | ACC_CONTROL | ACC_ALT)) != 0) rcparse_warning (_("inappropriate modifiers for non-VIRTKEY")); Apparently windres only allows modifiers like "ALT" for virtual keys (as opposed to ASCII characters). I think this is incorrect because my win32.hlp file has an example: "B", ID_ACCEL5, ALT ; ALT_SHIFT+B "I", ID_ACCEL6, CONTROL, VIRTKEY ; CTRL+I So I think this check in windres is incorrect, but it is in fact a warning not an error, and windres still produces an output file. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2002-08-05 16:52 Message: Logged In: YES user_id=15438 Danny, do you have any insights? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=202435&aid=586935&group_id=2435 |