News:

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

Main Menu

JamieJean's many questions ^^'

Started by JamieJean, February 08, 2021, 03:45:55 AM

Previous topic - Next topic

jj2007

Quote from: JamieJean on February 15, 2021, 03:49:01 AMIt's odd that Iczelion's tutorial just uses '#include "resource.h"'. Is that a product of the time?

In a sense, yes. In the old times people used "environment variables" in batch files that specified, for example,
set include=\masm32\include

So the assembler found the simple "resource.h" by combining the include variable with it: \masm32\include\resource.h

The downside is that these variables were used by everybody, and cluttered the machine. Try, from a DOS prompt: path <return>, you will see that there is still a lot of crap around, mainly from very old software.

Here in the forum Hutch had the bright idea (and I mean it) to place the Masm32 at a defined position from the root: it can be at
C:\Masm32
D:\Masm32
...
Z:\Masm32
etc... and therefore an #include "\masm32\include\resource.h" is always correct. We never had any problems with that method :cool:

Important: Do not use C:\Masm32\... - other members have Masm32 on D: or Z:
include \masm32\include\masm32rt.inc ; this is the correct usage (masm32rt is sufficient for most applications)

.code
AppName db "Masm32:", 0

start: MsgBox 0, "Hello World, how are you?", addr AppName, MB_OK
exit

end start

mineiro

Quote from: JamieJean on February 15, 2021, 03:21:39 AM
The links to all Lczelion's examples are dead, so I can't just check what they used, and they don't mention it in the tutorial itself.

You can try www.waybackmachine.org and paste link below to go back to past  :thumbsup:
http://win32asm.cjb.net/
This should give you something like:
http://web.archive.org/web/20010626185752/http://win32asm.rxsp.com/tutorials.html
I'd rather be this ambulant metamorphosis than to have that old opinion about everything