NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: william427 on July 28, 2014, 06:24:10 PM

Title: windows 32 bit user input
Post by: william427 on July 28, 2014, 06:24:10 PM
hey is it possible to get user input from a messagebox ?
ive been looking all day for examples in windows,im looking at msdn there so much stuff up there,what do I have to look up
for getting user input?
thanks
Title: Re: windows 32 bit user input
Post by: gammac on July 28, 2014, 07:16:54 PM
hey is it possible to get user input from a messagebox ?

No, you have to get familiar with Dialog Boxes.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms644996%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/ms644996%28v=vs.85%29.aspx)
Title: Re: windows 32 bit user input
Post by: william427 on July 29, 2014, 02:50:04 PM
but Dialog Boxes use buttons , I need to type in and then get answer .
Title: Re: windows 32 bit user input
Post by: gammac on July 29, 2014, 03:25:51 PM
Dialog Boxes can contain all types of controls not only buttons. You have to build your own Dialog Box with an Edit Control (http://msdn.microsoft.com/en-us/library/windows/desktop/bb775458%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/bb775458%28v=vs.85%29.aspx)). There isn't a predefined Dialog called 'InputBox'.

It seems to me that you need a win32 assembly programming tutorial. There are many, it's simple to find them with your favourite search engine. But I'am sorry, I do not know one that's based on NASM.

Title: Re: windows 32 bit user input
Post by: Rob Neff on July 29, 2014, 03:37:44 PM
Although not a tutorial, per se, the NASMX package contains commented examples which include creation and use of dialog boxes which are located in the demos directory.  It should be easy to take an example and modify it to your liking.
Title: Re: windows 32 bit user input
Post by: william427 on July 29, 2014, 03:45:01 PM
thanks ill look into nasmx package ,
I never could understand much from msdn , that's one of my problems I guess.
most all samples are in masm that ive found ,will keep reading.
thanks all