News:

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

Main Menu

Fatal Error: cannot open input file .EXE!

Started by g6g6, June 13, 2014, 03:52:43 AM

Previous topic - Next topic

dedndave

there are thousands   :biggrin:

if you want to look inside the DLL's, you can use a free program called Dependency Walker

but - it's much easier to just look at the include files in \masm32\include
these are plain text files that may be opened with NotePad

if you want to see what's inside kernel32.dll,
most of the functions are prototyped in \masm32\include\kernel32.inc


dedndave

if you want descriptions, microsoft maintains a site called MSDN
most of the functions are documented in the MSDN library

here's a simple example
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682658%28v=vs.85%29.aspx

they are shown in C syntax, of course
most of us can look at the C code and know the MASM syntax is
        INVOKE  ExitProcess,uExitCode

g6g6

Yes, I know this site..Do you thing that with just this book that I am studying I can lear assembly?

dedndave

Kip's book is great for learning the basics, like....
data types - numbering systems
basic masm syntax
intel instructions

there are some things that Kip does in an "out of date" way, though
the best example of this is that most of his library functions are passed arguments in register
and - the functions don't typically follow the rules of the windows ABI

per microsoft, things changed drastically between 16-bit DOS and 32-bit Windows
for example, arguments are passed on the stack (not in registers)
many of the methods Kip uses are carry-overs from 16-bit days

as long as you understand that, you can still use Kip's book to learn the basics


Gunther

Quote from: dedndave on June 13, 2014, 06:42:11 AM
there are some things that Kip does in an "out of date" way, though
the best example of this is that most of his library functions are passed arguments in register
and - the functions don't typically follow the rules of the windows ABI

Always this Kip. I can't recommend him.

Gunther
You have to know the facts before you can distort them.


Gunther

Quote from: g6g6 on June 14, 2014, 02:35:09 AM
what you recommend?

For learning 32-bit Windows programming: Download and install the MASM32 package. It contains a large number of working and well commented examples, tutorials and help files. That should be sufficient for a start. Later are the manuals by Intel and AMD very helpful.

Gunther
You have to know the facts before you can distort them.