hi, im looking through the tutorials and examples included in the masm32 folder and am trying to compile some of them so i can have a play with them. ive copied the source into the IDE that came with masm32, and used the link and assemble option under project. when i try to run the .exe, nothing happens. all the files are also the same size as the ones in the demo folder. when i use the .exe in the demo folder, it does spit out hello world. the code im trying to assemble is the first demo in the /tutorial/console folder, aka hello world. heres the source that im using. can anyone please tell me what im doing wrong.
btw, i have been able to compile examples from iczelions tutorilas without problems.
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
; Build this with the "Project" menu using
; "Console Assemble and Link"
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
.486 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include \masm32\include\windows.inc ; always first
include \masm32\macros\macros.asm ; MASM support macros
; -----------------------------------------------------------------
; include files that have MASM format prototypes for function calls
; -----------------------------------------------------------------
include \masm32\include\masm32.inc
include \masm32\include\gdi32.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
; ------------------------------------------------
; Library files that have definitions for function
; exports and tested reliable prebuilt code.
; ------------------------------------------------
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\gdi32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.code ; Tell MASM where the code starts
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
start: ; The CODE entry point to the program
print chr$("Hey, this actually works.",13,10)
exit
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
end start ; Tell MASM where the program ends
Two options for assembling
Assemble & Link
Produces a GUI exe
Console Assemble & Link
Produces a console/text mode exe
DEAD,
What has probably happened is you built it asa GUI app. Build it as a console app and go to the console and run it from there. Then you will see the results. With a program this short, often the cponsole does not even display before it closes so you just don't see it.
thanks, i was building it as a GUI app, now i have something to play with and learn from.
thanks again