Setting Up The Compiler =F

Posts 1–4 of 4 · Page 1 of 1
I Need Help Setting Up The Compiler =F
I have everything set up, and I used the following test code to assure it works :

.386
.model flat,stdcall
option casemap:none
include C:\ASM\masm32\include\windows.incⓘ
include C:\ASM\masm32\include\kernel32.incⓘ
includelib C:\ASM\masm32\lib\kernel32.lib
include C:\ASM\masm32\include\user32.incⓘ
includelib C:\ASM\masm32\lib\user32.lib

.data
MsgBoxCaption db "Test",0
MsgBoxText db "Test",0

.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start
It compiles, but it doesn't execute.. I'm using 'WinAsm Studios" with masm32 dirs. Yes I configured it to use the masm32 dirs,bin,includes,etc..

*edit*
Okay, I just located the EXE, and now its "Not A Valid Win32 Application."
The project type is standard EXE.
Well, thanks for answering my question there.

*edit*

Okay, WHAT THE FUCK. I can't find a compiler, I just tried FASM and it won't compiler jack shit, because its an 'Invalid argument'. What the fuck do I have to do. Jesus Christ, and nothing has a fucking GUI.
First, it's an assembler. second use radasm by visual assembler, third make the includes relative to the drive letter. "try adding "\ASM" before the "\masm32\inc..." like I did in the first line. If this doesn't work, re-instal masm to the C:\masm32 directory instead. the documentation in masm states that it is almost necessary to install to the root directory.

Post again if you have more questions or neither of those work.

Code:
include ASM\masm32\include\windows.inc
include \masm32\include\masm32.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include \masm32\include\debug.inc
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\debug.lib


Quote Originally Posted by awanaghana View Post
Tasm is better
NASM>MASM>rest =p
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us