Results 1 to 4 of 4
  1. #1
    Someguytwo's Avatar
    Join Date
    Nov 2007
    Posts
    141
    Reputation
    -5
    Thanks
    9

    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.
    Last edited by Someguytwo; 02-03-2008 at 07:50 PM.

  2. #2
    awanaghana's Avatar
    Join Date
    Jul 2007
    Posts
    18
    Reputation
    10
    Thanks
    1
    Tasm is better

  3. #3
    Someguytwo's Avatar
    Join Date
    Nov 2007
    Posts
    141
    Reputation
    -5
    Thanks
    9
    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.
    Last edited by Someguytwo; 02-04-2008 at 04:57 PM.

  4. #4
    Jakor's Avatar
    Join Date
    Feb 2008
    Posts
    48
    Reputation
    10
    Thanks
    0
    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

Similar Threads

  1. Replies: 6
    Last Post: 12-08-2008, 12:57 PM
  2. What is the best compiler for C++?
    By ip_ban in forum C++/C Programming
    Replies: 2
    Last Post: 07-26-2008, 04:29 PM
  3. Post the scariest shit you have seen!
    By arunforce in forum General
    Replies: 26
    Last Post: 08-17-2007, 11:16 PM
  4. Does the Firefly skin Suck?
    By Dave84311 in forum General
    Replies: 11
    Last Post: 02-10-2007, 06:49 AM
  5. Plz I Want Maple Global Hacks And Where Do I Get Game Engine 2 Make The Hacks Work???
    By mattinthehat in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 01-15-2006, 06:12 PM

Tags for this Thread