News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

program with a resource file

Started by shankle, May 11, 2015, 03:54:14 AM

Previous topic - Next topic

shankle


I have been able to create the rsrc.res file.
The code below is my attempt at creating a GoAsm .exe file
which includes a rsrc file.
The items that define the different tasks are from a masm32
program which might or might not be accurate.
Thanks for any help.

;  5-10-2015
#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


Set INCLUDE=e:\codejps
Set PATH=e:\codejps
GoAsm /x64/b/c /GoRC /r rsrc.rc sfile64.asm
GoLink /unused rsrc.res sfile64.obj

; This is the Dos run that fails
e:\codejps\goasm /x64/b/c \GoRC /r/x64 sfile64.asm
GoAsm.exe  V.0.60.0.1
error could not open assembler source file (sfile64.asm)
obj file not made
e:\codejps>GoLink /unused rsrc.rc sfile64.obj
GoLink.exe  V.1.0.1.0
error could not open input file (sfile64.obj)
output file not made
Thanks for any help.

jj2007

error could not open assembler source file (sfile64.asm)

Looks like extremely precise information about the source of the problem. Where is sfile64.asm ?

Yuri

Not sure I understand what you are trying to do.
.rc files should be fed to GoRC.exe, not GoAsm.exe.

shankle

Problem solved. I think.
Many thanks