The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: shankle on May 11, 2015, 03:54:14 AM

Title: program with a resource file
Post by: shankle on May 11, 2015, 03:54:14 AM

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.
Title: Re: program with a resource file
Post by: jj2007 on May 11, 2015, 04:45:02 AM
error could not open assembler source file (sfile64.asm)

Looks like extremely precise information about the source of the problem. Where is sfile64.asm ?
Title: Re: program with a resource file
Post by: Yuri on May 11, 2015, 05:48:16 AM
Not sure I understand what you are trying to do.
.rc files should be fed to GoRC.exe, not GoAsm.exe.
Title: Re: program with a resource file
Post by: shankle on May 11, 2015, 11:53:29 PM
Problem solved. I think.
Many thanks