News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Why must the ASM file be saved in the Bin folder ? !

Started by RAFAAJ2000, January 14, 2013, 08:29:43 PM

Previous topic - Next topic

RAFAAJ2000

If I save the file somewhere else the code just doesn't assemble !  ......  Have I missed something during the MASM32 installation ? or is there a setting somewhere that I need to change ?

Thanks in advance.

jj2007

Rafaaj,

Please refrain from opening new threads (@moderator: could this be merged to the other "Why does this.." thread?)

We are very bad at reading your thoughts and guessing your problems. Therefore, to get help, you should:
- post complete code including the headers (members need to test it, and are too lazy to add the includes themselves)
- post error messages (type, line in source code, ...)
:icon14:

RAFAAJ2000

Quote from: jj2007 on January 14, 2013, 08:53:32 PM
Rafaaj,

Please refrain from opening new threads (@moderator: could this be merged to the other "Why does this.." thread?)

We are very bad at reading your thoughts and guessing your problems. Therefore, to get help, you should:
- post complete code including the headers (members need to test it, and are too lazy to add the includes themselves)
- post error messages (type, line in source code, ...)
:icon14:

Any code must be saved in the bin folder for it to work and I get no errors whatsoever when assembling & linking.

Code that I am experimenting with :
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data
MsgBoxCaption db "An example of Cancel,Retry,Continue",0
MsgBoxText db "Hello Message Box!",0

.code
start:
invoke MessageBox,
NULL,
addr MsgBoxText,
addr MsgBoxCaption,
MB_ICONERROR OR MB_ABORTRETRYIGNORE

.IF eax==IDABORT
; Abort was pressed

.ELSEIF eax==IDRETRY
; Retry was pressed

.ELSEIF eax==IDCANCEL
; Cancel was pressed
.ENDIF

invoke ExitProcess,NULL
end start


Regards.

frktons

Quote from: RAFAAJ2000 on January 14, 2013, 09:03:37 PM

Any code must be saved in the bin folder for it to work and I get no errors whatsoever when assembling & linking.


How do you assemble your programs?
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

six_L

if your masm32 packages were being in E disk, then add the following users environmental variation into the system settings.
QuoteE:\masm32\bin;E:\masm32\include;E:\masm32\lib;
Say you, Say me, Say the codes together for ever.

RAFAAJ2000

Quote from: frktons on January 14, 2013, 09:26:31 PM
Quote from: RAFAAJ2000 on January 14, 2013, 09:03:37 PM

Any code must be saved in the bin folder for it to work and I get no errors whatsoever when assembling & linking.


How do you assemble your programs?

Project > Assemble & Link

RAFAAJ2000

Quote from: six_L on January 14, 2013, 09:29:14 PM
if your masm32 packages were being in E disk, then add the following users environmental variation into the system settings.
QuoteE:\masm32\bin;E:\masm32\include;E:\masm32\lib;

Yes the MASM32 package is in the E disk.... I tried your suggestion but ddn't work. - Does the name I have to give the new users environmental variation matter ?

Using Win XP SP3 - home PC

frktons

Quote from: RAFAAJ2000 on January 14, 2013, 09:35:48 PM
Project > Assemble & Link

1] Project > Console Assemble & Link
2] what the Assembler says when you compile?
3] where are your sources?
There are only two days a year when you can't do anything: one is called yesterday, the other is called tomorrow, so today is the right day to love, believe, do and, above all, live.

Dalai Lama

jj2007

Quote from: RAFAAJ2000 on January 14, 2013, 09:03:37 PM
Code that I am experimenting with :

If:
- I open \Masm32\qeditor.exe
- paste your code
- save it as \Masm32\test.asm
- click Project/Build All
... then this output appears:
Microsoft (R) Macro Assembler Version 6.15.8803
Copyright (C) Microsoft Corp 1981-2000.  All rights reserved.

Assembling: C:\Masm32\Test.asm

***********
ASCII build
***********

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Volume in drive C has no label.
Volume Serial Number is 4CBE-DFDC

Directory of C:\Masm32

14.01.13  12:10               671 Test.asm
14.01.13  12:10             2,560 Test.exe
14.01.13  12:10               850 Test.obj
               3 File(s)          4,081 bytes
               0 Dir(s)  90,207,358,976 bytes free
Press any key to continue . . .

Afterwards, when clicking Project/Run program, the MsgBox appears.

Question:
- What is different on your side?
- Did you fumble with any qEditor settings?
- What else could influence the build process?

six_L

QuoteDoes the name I have to give the new users environmental variation matter ?
yes.
frist,you need to ensure the "ml.exe,rc.exe,Link.exe" working on anypath. you may save your source code on ererywhere.
Say you, Say me, Say the codes together for ever.

RAFAAJ2000

Quote from: frktons on January 14, 2013, 10:00:04 PM
Quote from: RAFAAJ2000 on January 14, 2013, 09:35:48 PM
Project > Assemble & Link

1] Project > Console Assemble & Link
2] what the Assembler says when you compile?
3] where are your sources?

Tried Console Assemble & Link with no luck.
I get no output or error messages at all
The asm file is saved on my desktop and the masm32 package in the E: drive

RAFAAJ2000

Quote from: jj2007 on January 14, 2013, 10:12:51 PM
Quote from: RAFAAJ2000 on January 14, 2013, 09:03:37 PM
Code that I am experimenting with :

If:
- I open \Masm32\qeditor.exe
- paste your code
- save it as \Masm32\test.asm
- click Project/Build All
... then this output appears:
Microsoft (R) Macro Assembler Version 6.15.8803
Copyright (C) Microsoft Corp 1981-2000.  All rights reserved.

Assembling: C:\Masm32\Test.asm

***********
ASCII build
***********

Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

Volume in drive C has no label.
Volume Serial Number is 4CBE-DFDC

Directory of C:\Masm32

14.01.13  12:10               671 Test.asm
14.01.13  12:10             2,560 Test.exe
14.01.13  12:10               850 Test.obj
               3 File(s)          4,081 bytes
               0 Dir(s)  90,207,358,976 bytes free
Press any key to continue . . .

Afterwards, when clicking Project/Run program, the MsgBox appears.

Question:
- What is different on your side?
- Did you fumble with any qEditor settings?
- What else could influence the build process?

I follow exactly the same steps but nothing happens ! However If I save the asm in the Bin folder then everything works just fine.
I didn't mess with any settings since I installed masm32.

RAFAAJ2000

Quote from: six_L on January 14, 2013, 10:14:36 PM
QuoteDoes the name I have to give the new users environmental variation matter ?
yes.
frist,you need to ensure the "ml.exe,rc.exe,Link.exe" working on anypath. you may save your source code on ererywhere.
I meant what name should I give the new system user variable entry you suggested as one must enter a name for the new system variable value .

jj2007

- click Project/Build All

What do you see when you click? Nothing??

six_L

1,"startup"->"run"->type: cmd
2, type: set path=E:\masm32\bin;E:\masm32\include;E:\masm32\lib;
3, test your source codes.
Say you, Say me, Say the codes together for ever.