flat assembler
Message board for the users of flat assembler.

Index > Windows > error compiling this code (menu problem)

Author
Thread Post new topic Reply to topic
moriman



Joined: 01 Apr 2006
Posts: 55
Location: Northern Ireland
moriman 04 May 2006, 22:51
Hi,

I have a good idea that the solution to this will have me kicking myself for weeks but here goes...

I have a menu like this...
Code:
menu _menuMain
        menuitem '&File',0,MFR_POPUP
        menuitem        '&Open',MI_OPEN,0
        menuitem        '&Save...',MI_SAVE,0
        menuitem        'Save&As...',MI_SAVEAS,0
        menuseparator
        menuitem        'E&xit',MI_EXIT,MFR_END
        menuitem '&Edit',0,MFR_POPUP
        menuitem        'Cu&t',MI_CUT,0
        menuitem        '&Preferences...',MI_PREF,MFR_END
    


which appears ok to me but it refuses to compile, giving the following error..


flat assembler version 1.64
test.asm [84]:
menu _menuMain
E:\Win98\Progra~1\fasm\include\macro/resource.inc [153] menu [1]:
label dd RVA data,size,0,0
error: undefined symbol.


If I change the one-before-last menuitem to

Code:
        menuitem        'Cu&t',MI_CUT,MFR_END
    

then it compiles without any errors Confused

The complete source here


Description: This won't compile. Change line 92 as outlined and it does compile :?
Download
Filename: test.asm
Filesize: 2.11 KB
Downloaded: 199 Time(s)

Post 04 May 2006, 22:51
View user's profile Send private message Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner 05 May 2006, 02:54
Code:
menu _menuMain
        menuitem '&File',0,MFR_POPUP
        menuitem        '&Open',MI_OPEN
        menuitem        '&Save...',MI_SAVE
        menuitem        'Save&As...',MI_SAVEAS
        menuseparator
        menuitem        'E&xit',MI_EXIT,MFR_END
        menuitem '&Edit',0,MFR_POPUP+MFR_END
        menuitem        'Cu&t',MI_CUT
        menuitem        '&Preferences...',MI_PREF,MFR_END
    

the above would do Smile
Post 05 May 2006, 02:54
View user's profile Send private message Visit poster's website Reply with quote
moriman



Joined: 01 Apr 2006
Posts: 55
Location: Northern Ireland
moriman 05 May 2006, 09:02
Ah! Many thanks, so it was the MFR_POPUP+MFR_END I was missing Smile
Post 05 May 2006, 09:02
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.