You can use RC.EXE file in the bin directory to compile the resource script.Example: Your script is saved in myresource.rc rc /v myresource.rcThat will produce a myresource.res file, which you can convert it to object file using CVTRES.EXE: cvtres /machine:ix86 myresource.resThat will produce a myresource.obj file, ready for linking using the LINK.EXE:Example: You ASM file has been assembled as myprogram.obj: link /SUBSYSTEM:WINDOWS myprogram.obj myresource.objYou final product is myprogram.EXE.Regards,-chris
No prob. I'm here always in DevPinoy
I dont usually use resource generators, or if I use one, I usually use the one from Microsoft Visual C++ (and clean it after). From your resource, you can actually use a C' curly braces in defining blocks:Here's yours#define IDC_OK 1003#define IDC_EXIT 1004101 DIALOGEX 0,0,157,29CAPTION "Test Dialog"FONT 8,"Tahoma"STYLE 0x90c80880EXSTYLE 0x00000000BEGIN CONTROL "OK",IDC_OK,"Button",0x10000001,103,6,24,14,0x00000000 CONTROL "Exit",IDC_EXIT,"Button",0x10000000,130,6,21,14,0x00000000 CONTROL "",1001,"Edit",0x10000080,7,7,90,12,0x00000200ENDHere's the modified one, with comments:#define IDC_OK 1003#define IDC_EXIT 1004101 DialogEx 0, 0, 157, 29 // Dialog - X, Y, Width, Height Caption "Test Dialog" // Dialog Caption Font 8,"Tahoma" // Font - Size in Point, Font-Face Style 0x90c80880 // Window Styles (WS_*) ExStyle 0x00000000 // Window Extended Styles (WS_EX_*){ // This is a button "OK" control Control // Definition can span multiple lines "OK", // Caption IDC_OK, // ID "Button", // Class 0x10000001, // Styles 103, // X 6, // Y 24, // Width 14, // Height 0x00000000 // Extended-Styles (Optional) // This is a button "Exit" control Control "Exit",IDC_EXIT,"Button",0x10000000,130,6,21,14,0x00000000 // This is an edit control Control "",1001,"Edit",0x10000080,7,7,90,12,0x00000200}As you may have noticed from the modified recource script, nothing has changed except that I added indentation and changed the BEGIN-END to curly braces {}; and since I used the C language notation, I can now use the C comment styles, both single-line comment // and multi-line comments /* */ will work.One the part of defines, like this one:#define IDC_OK 1003#define IDC_EXIT 1004If the list becomes huge, i.e., for number of controls, menus, resource and accelerators; you can simply move it to another (*.h) header file, i.e., resource.h; then use the C language #include directive to attach the external resource script to your main resource script.See the attachment for another example of a dialog-based MASM program (coded in WinAsm studio), and it uses the MessageCracker include file.Regards,-chris