7-2-2014
Hope I have included all the necessary items.
If Not I will supply more if needed.
Obviously I am having names problems.
Not sure if anything else.
Have no idea how to code the name in the resfile script.
Here are the GoRC errors:
Line 1 of Resource Script {resfile}
An ID was not evaluated and was assumed to be a name.
Line 1 of Resource Script {resfile}
A resource type was not recognized and assumed to be
used-defined-Main.
ERROR!
Line 1 of Resource Script {resfile}.
Could not find File- resfile
Res file not made
; resbatch
Set INCLUDE= J:\codejps
Set PATH=J:\codejps
GoAsm /x64/b/c blah1.asm
GoRC /machine x64 /r resfile.rc
GoLink /unused blah1.obj
id_menu main resfile ; This gave a compile error
#define IDM_CUT 1101
#define IDM_COPY 1102
#define IDM_PASTE 1103
#define IDM_FIND 1104
#define IDM_UNDO 1105
#define IDM_EXIT 1010
600 MENUEX MOVEABLE IMPURE LOADONCALL DISCARDABLE
BEGIN
POPUP "&File", , , 0
BEGIN
MENUITEM "&Exit", IDM_EXIT
END
POPUP "&Edit", , , 0
BEGIN
MENUITEM "C&ut", IDM_CUT
MENUITEM "COPY", IDM_COPY
MENUITEM "PASTE", IDM_PASTE
MENUITEM "&FIND", IDM_FIND
MENUITEM "UNDO", IDM_UNDO
END
END
Changes in the 64-bit res usage program
resfile db 'resbtch',0
.const
menuname equ 600
IDM_CUT equ 1101
IDM_COPY equ 1102
IDM_PASTE equ 1103
IDM_FIND equ 1104
IDM_UNDO equ 1105
IDM_EXIT equ 1010
IDOK equ 1
IDCANCEL equ 2
mov Q[ovl.lpszMenuName],offset resfile
invoke LoadMenu, [hInst],[menuname] ; not sure if menuname is correct
invoke SetMenu, [hWnd],rax
invoke GetSubMenu, rax,0
mov Q[hMenu],rax
WinMain:
FRAME hInst,hPrevInst,CmdLine,CmdShow
LOCAL ovl:WNDCLASSEX,msg,RR:RECT,hWndEX
Local ps:PAINTSTRUCT,hBrush,hdc,hMenu
WndProc:
FRAME hWnd,iMsg,wParam,lParam
LOCAL ovl:WNDCLASSEX,hInst,hMenu
Local hdc