The MASM Forum

General => The Campus => Topic started by: Hazique35 on April 05, 2013, 03:33:30 AM

Title: MASM in VC++ 2010
Post by: Hazique35 on April 05, 2013, 03:33:30 AM
Hi, I am very new to masm and I was wondering whether or not masm in VC++ 2010 would be the exact same as masm in the regular assembler. also, there seems to be a lot of include files in some code that I have seen. Do these always have to be there because I have looked around a bit and its always there. Cant masm be assembled without these?

thanks
Title: Re: MASM in VC++ 2010
Post by: TouEnMasm on April 05, 2013, 04:01:44 AM
Quote
there seems to be a lot of include files in some code that I have seen. Do these always have to be there

The number of include files depends of what you are doing.
Title: Re: MASM in VC++ 2010
Post by: Vortex on April 05, 2013, 04:48:23 AM
QuoteCant masm be assembled without these?

Without include files, programming with Masm would be difficult.
Title: Re: MASM in VC++ 2010
Post by: Hazique35 on April 05, 2013, 05:07:30 AM
Thanks for the replies. Now is there any difference  in coding when using VC++ 2010 as the IDE? This is all I really want to know because it would be a lot easier to find tutorials if it were the same.

thanks.
Title: Re: MASM in VC++ 2010
Post by: jj2007 on April 05, 2013, 05:19:10 AM
Quote from: Hazique35 on April 05, 2013, 03:33:30 AMthere seems to be a lot of include files in some code that I have seen.

Negligible compared to what you have to include for a "hello world" in C/C++. All you really need is one line:

include \masm32\include\masm32rt.inc
.code
start:   MsgBox 0, "Hello World", "Masm32 is simple:", MB_OK
         exit
end start


Re VC, it's an overkill. Most of us use something "leaner", like RadAsm, EasyCode, qEditor or even Notepad.
And the documentation you are looking for is in \Masm32\Help.

See also Masm32 tips & tricks (http://www.webalice.it/jj2006/Masm32_Tips_Tricks_and_Traps.htm) to get started.

P.S.: Welcome to the Forum :icon14:
Title: Re: MASM in VC++ 2010
Post by: Magnum on April 05, 2013, 09:56:59 AM
Quote from: Hazique35 on April 05, 2013, 05:07:30 AM
Thanks for the replies. Now is there any difference  in coding when using VC++ 2010 as the IDE? This is all I really want to know because it would be a lot easier to find tutorials if it were the same.

thanks.

I have used the VC++ ide and it's a friggin nightmare.

And you can expect it's output to be about 15 times larger than assembly code.

I would recommend using Qeditor and it's many features.

Andy
Title: Re: MASM in VC++ 2010
Post by: Hazique35 on April 05, 2013, 11:06:18 AM
Thanks everyone, ill try out the other editors
Title: Re: MASM in VC++ 2010
Post by: Hazique35 on April 05, 2013, 11:18:50 AM
Hello again, Ive downloaded RadAsm and I really like it. Its got syntax highlighted where VC++ didnt which is a plus, but Im confused on how to run the program. I know that I have to save the file, but where? I saved the file in the 'My Documents' folder and an error popped up saying: "cannot open the file, .exe" How is a typical program run in this IDE.

thanks again