News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ResEd Usage

Started by tbohon, June 10, 2011, 07:05:29 PM

Previous topic - Next topic

tbohon

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

dedndave

isn't there a menu item to assemble ? (perhaps called "build")

mineiro

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

xandaz

   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