QCW9110007: QCase:W Generates Incorrect Resource for Separator

ID Number: Q77947

1.00

WINDOWS

buglist1.00

Summary:

PROBLEM ID: QCW9110007

SYMPTOMS

When using the QCase:W utility shipped with Microsoft QuickC for

Windows (QC/Win) version 1.0, generating a menu item separator in a

drop-down menu causes an incorrect resource file to be generated if

the separator is chosen after attempting to create a regular menu

item with a CHECKED or GRAYED option.

After generating the code successfully in QCase:W, attempting to

build the application in QC/Win generates the following error:

D:\QCWIN\FILES\TEST.RC(8) : error RW2002: Unknown Menu SubType

TEST.RC is the file generated by QCase:W, and line 8 is the line

where the error occurred.

RESOLUTION

To work around the problem, open the .RC file from within the QC/Win

environment. Go to the line where the error occurred and delete any

data that is appended to the MENUITEM SEPARATOR statement. The

line will resemble the following:

MENUITEM SEPARATOR, GRAYED

-or-

MENUITEM SEPARATOR, CHECKED

Deleting both the comma and the word following the comma will allow

the resource file to be compiled correctly.

STATUS

Microsoft has confirmed this to be a problem in QC/Win version 1.0.

We are researching this problem and will post new information here

as it becomes available.

More Information:

To reproduce the problem, enter the QCase:W environment and choose New

from the File menu. Click the user menu (that is, <<>>) and type in a

menu name. Choose OK and a menu with that name will be generated.

Choose the user menu (that is, <<>>) within that drop-down menu and

select the CHECKED radio button. Immediately choose the Separator

radio button near the top of the dialog box. Choose OK and a separator

will be placed on the menu bar.

Once this is done, choose Generate from the Build menu to generate the

files related to this script. Once successfully completed, enter

QC/Win, load the make file related to the project, and then build it.

The above error will be generated.

Additional reference words: 1.00