The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: tbohon on June 10, 2011, 07:05:29 PM

Title: ResEd Usage
Post by: tbohon on June 10, 2011, 07:05:29 PM
Are there any tutorials anywhere showing how to use ResEd and then take the output into MASM?  I'm able to design a dialog and save the code output but where do I go from there?

TIA.

Tom
Title: Re: ResEd Usage
Post by: dedndave on June 10, 2011, 08:57:33 PM
isn't there a menu item to assemble ? (perhaps called "build")
Title: Re: ResEd Usage
Post by: mineiro on June 11, 2011, 12:40:01 AM
Hello tbohon, well I'm not sure what version of resed you have, so I based in older versions.I'm supposing too, that you don't have masm32 folder in "path" ok.

First, create a folder to store the resource file, create it in "C:\resource"

In Resed:
File, New Project
Project, Add Dialog   ;and take a look of name of dialog, default (IDD_DLG1)
Draw a button in that dialog.
File,Save Project As "rsrc.rc"
Project, Names, click on button "Export"
save as "rsrc.inc"
note: in new version, you have inside resed a menu called "export names"
Ok, close resed.


Click on Start button, execute, type "cmd"
In prompt type: "PATH=%PATH%;\masm32\bin;\masm32\include;\masm32\lib"
In prompt type: "cd \resource"
type: "rc /v rsrc.rc"
type: "cvtres /machine:ix86 rsrc.res"

note1:If you receive some errors like:
rsrc.rc.rsrc.rc (7): error RC2104 : undefined keyword or key name: WS_VISIBLE
So, you need edit your rsrc.rc with notepad, and insert the line below in the first line of rsrc.rc
#include <resource.h>

Open in notepad rsrc.inc, copy all their contents, and paste in .const of your asm file.(or "include rsrc.inc" in your asm project)
To compile your code, and suposing you have done the steps before:
ml.exe /c /coff one.asm
link.exe /subsystem:windows one.obj rsrc.obj
Title: Re: ResEd Usage
Post by: xandaz on June 11, 2011, 10:00:21 AM
   I don't think that it takes so much meneiro. He just needs to name it rsrc.rc and save it to the project's directory and then hit Build All in QEDITOR and it's done. He may also choose Compile resource . Bye and laters