News:

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

Main Menu

Recent posts

#1
The Campus / Re: Creating a console window
Last post by Vortex - Today at 07:03:05 PM
Hi FJRusso53,

The function wait_key can do the job for you, it expects keyboard input from the user and this can be useful to keep open the console window :

include     \masm32\include\masm32rt.inc

.data

message     db 'This is a wait_key test.',13,10
            db 'Press any key to exit.',0

.code

start:

    invoke  StdOut,ADDR message

    invoke  wait_key

    invoke  ExitProcess,0

END start
#2
The Campus / Re: Creating a console window
Last post by TimoVJL - Today at 06:24:01 PM
This might helpWindows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\shell\Open With cmd\command]
@="\"cmd.exe\" \"/k \"%1\"\""
After that, right click file and choose Open With cmd
#3
The Campus / Re: Creating a console window
Last post by Greenhorn - Today at 03:48:07 AM
If you start a console application in VS, it keeps the console window open after the program has finished("Please press a key to continue" or so).
And if you execute the program outside of VS, and you do not call the function system("pause") or getchar() your console window will close immediately after the program has finished.
#4
The Campus / Re: Creating a console window
Last post by NoCforMe - Today at 03:42:31 AM
Sorry to ask (like asking the lady who called tech support "is it plugged in?", but are you trying to run your program from a command window or from Explorer, like you'd do for a GUI program? If the latter, then what you wrote is the expected behavior: it opens a command window, runs the program, then closes the window.
#5
The Campus / Re: Creating a console window
Last post by zedd151 - Today at 03:34:50 AM
Could you post the source code? Would make helping you much easier.
#6
The Campus / Creating a console window
Last post by FJRusso53 - Today at 03:18:26 AM
I am using MASM32 in VS 2022.  My present project is in excess of 6k lines.  The project runs inside of VS2022 using the debugger.  Everything I want it to do works.  My problem is if I try to run the executable it doesn't.  I get a console window with a line of text lasting for 3-5 seconds then the window disappears.  I am running on a desktop w/Win10. 

Thoughts?

#7
Miscellaneous Projects / Re: UASM64 Library
Last post by stoo23 - July 22, 2024, 06:53:15 PM
Would be great to see the Results of the Survey, as and when there are enough to be relevant  :smiley: 
#8
Tools & Toys / Re: A Teaching Toy: Sine wave ...
Last post by NoCforMe - July 21, 2024, 02:55:51 AM
Quote from: HSE on July 19, 2024, 11:28:52 PM32 bit "thing" still is placed in a 64 bit section  :biggrin:  :biggrin:

Don't you get that we're discussing where to put this stuff? And that it has nothing whatsoever to do with 32- or 64-bit?

Microsoft 64 bit MASM is not going to be the final destination of the proposed Projects forum.
#9
The Laboratory / Re: LibwebpDemux testing
Last post by guga - July 20, 2024, 01:43:38 PM
New version. Can someone test this for me and see if it crashes ? If it do, please send me also the image so i can see what´s wrong.

Btw, it is expected to work for animated webp as well.
#10
Examples / Re: LookingFor: A Masm64 tool ...
Last post by HSE - July 19, 2024, 11:39:47 PM
Hi all!

The return value from BMSearch was missing when file size is 0, then there were false positives. 

Updated in first post.

HSE