I am a total newb to ASM. I have downloaded masm32 and have a txt file with asm code i want to compile i also have the resource file. So i go to qeditor and load the txt file in and compile it but i get errors saying cannot find(or open) d:documents.exe ?

Any help would be good. thanks
Posted on 2004-03-08 07:29:44 by pointblank1
Posted on 2004-03-08 07:49:32 by gorshing


nope, but thanks anyway. Still looking for help though.
Posted on 2004-03-08 07:55:23 by jonnyr
IMHO the best place to start is Izcelion's tutorials. They worked for me;)

best regards,

czDrillard
Posted on 2004-03-08 08:19:21 by czDrillard
Start with the asm intro at www.madwizard.org combined with the iczelion tutorials - this way you learn both the API and how to deal with assembly (since icz doesn't really teach asm, just using the API in asm).

pointblank1, qeditor is somewhat sucky (well, at least last I looked)... hardcoded paths, can't handle source on a different partition than the masm32 installation, replaces tabs with spaces, and has no syntax coloring. Probably by choice. You might want to get a decent texteditor like TextPad, UltraEdit or Editplus, at least the two last ones are very easy to set up so you can assemble&link from within the editor.

Do you have any previous programming experience?
Posted on 2004-03-08 08:47:57 by f0dder
is it masm32v8 package you have

if yes open the qeditor that comes with it (load no file)

click edit--->edit menus ---->check

see if it pops up any errors correct it (probably you have to delete the line 8 which says run makeit.bat)

check again

it should say no errors

click cancel to return to main


click project and try all options without loading any file

it should get you message box withrespective .bat files as title and
no file loaded as text

if it is as stated you are ready to load the file


load the file (it must have the extension of .asm not .txt as you say)
for it to work properly coz

\masm32\bin\ml /c /coff "%1.asm" > \masm32\bin\asmbl.txt notice the %1 and asm in assemble .bat in masm32\bin folder

and click assemble the file

you should get an %1 .obj file in the same directory where your %1.asm resides
i mean you txt file which you loaded

now click link obj file

you should get an exe

now if you have resources too then you either need to compile them seperately
remember the resource must have rsrc.rc as its name none else as it is hard coded
like that in buildall.bat


hope you understand some thing

if you need to research open up all the .bat files in masm32\bin
and go through them youll find out how to tweak the q editor

and yes for very long time i ve been using this q editor (mainly cant afford to download anothere %%##* MB download for anothere ide)


and as fodder said there seems to be some problems like tab etc
but fodder dislikes hutch so by default hutchs software too gets the wrath

my opinion is overall if your coding needs not very high this editor is enough
Posted on 2004-03-08 09:30:37 by bluffer

Start with the asm intro at www.madwizard.org combined with the iczelion tutorials - this way you learn both the API and how to deal with assembly (since icz doesn't really teach asm, just using the API in asm).

pointblank1, qeditor is somewhat sucky (well, at least last I looked)... hardcoded paths, can't handle source on a different partition than the masm32 installation, replaces tabs with spaces, and has no syntax coloring. Probably by choice. You might want to get a decent texteditor like TextPad, UltraEdit or Editplus, at least the two last ones are very easy to set up so you can assemble&link from within the editor.

Do you have any previous programming experience?


Ok thanks, i know VB pretty decent, and am familiar with C++, but i need to create an app and would like the exe size as small as possible, hence ASM. I have the assembler source code for the app and was just going to mod it a bit. but i cant even get started with compiling.
Posted on 2004-03-08 09:32:13 by jonnyr
Hi,

You may want to try WinAsm Studio and more specifically here:

http://www.code4u.net/winasm/quickstart.htm


Regards,

akyprian
Posted on 2004-03-08 10:09:52 by akyprian
Assuming you have installed the MASM32 package as required, create a subfolder of MASM32 such as Projects (you can subdivide that one later if you whish).

Copy your source file in that folder and make sure it has an .asm extension as indicated by bluffer.

Copy your resource file in the same directory, renaming it to rsrc.rc if necessary. That resource file must have as its 1st line:
#include "\masm32\include\resource.h"

Using QEditor, open the .asm file. Then, from the Project tab, choose the Build All option.

If both your source and resource files were adequate, you won't get any error message and an .exe will be produced in your subfolder. Otherwise, we would have to look at either one for further help. One of the possibilities would be that the source file was written for use with another type of assembler, using different syntax.

Raymond
Posted on 2004-03-08 12:48:58 by Raymond

Assuming you have installed the MASM32 package as required, create a subfolder of MASM32 such as Projects (you can subdivide that one later if you whish).

Copy your source file in that folder and make sure it has an .asm extension as indicated by bluffer.

Copy your resource file in the same directory, renaming it to rsrc.rc if necessary. That resource file must have as its 1st line:
#include "\masm32\include\resource.h"

Using QEditor, open the .asm file. Then, from the Project tab, choose the Build All option.

If both your source and resource files were adequate, you won't get any error message and an .exe will be produced in your subfolder. Otherwise, we would have to look at either one for further help. One of the possibilities would be that the source file was written for use with another type of assembler, using different syntax.

Raymond


I think the source isn't compatable as i can compile the MASM examples ok. Thing is when i change the examples source it doesn't seem to have any effect when i recompile it, even though it compiles fine. Like take the OPENGL example for the spining spheres. If i change some parameters like the colours of the spheres then recompile, no change is noticed.

As i say i am a newb at Assembler and ASM, IDE's/compilers. Also the fact that the command box is shown when compiling with MASM is a bit of a pain.

Another thing, ASM actually looks ok, in fact, dare i say, it looks easier than C++ in a way. :alright:
Posted on 2004-03-08 17:14:06 by jonnyr