Author Topic: program with a resource file  (Read 1969 times)

shankle

  • Member
  • ****
  • Posts: 797
program with a resource file
« 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.

jj2007

  • Member
  • *****
  • Posts: 8776
  • Assembler is fun ;-)
    • MasmBasic
Re: program with a resource file
« Reply #1 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 ?

Yuri

  • Member
  • **
  • Posts: 171
Re: program with a resource file
« Reply #2 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.

shankle

  • Member
  • ****
  • Posts: 797
Re: program with a resource file
« Reply #3 on: May 11, 2015, 11:53:29 PM »
Problem solved. I think.
Many thanks