Author Topic: windows 32 bit user input  (Read 13980 times)

Offline william427

  • Jr. Member
  • *
  • Posts: 23
windows 32 bit user input
« 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

Offline gammac

  • Jr. Member
  • *
  • Posts: 71
  • Country: 00
Re: windows 32 bit user input
« Reply #1 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
Please comment your code! It helps to help you.

Offline william427

  • Jr. Member
  • *
  • Posts: 23
Re: windows 32 bit user input
« Reply #2 on: July 29, 2014, 02:50:04 PM »
but Dialog Boxes use buttons , I need to type in and then get answer .

Offline gammac

  • Jr. Member
  • *
  • Posts: 71
  • Country: 00
Re: windows 32 bit user input
« Reply #3 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). 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.

« Last Edit: July 29, 2014, 03:31:55 PM by gammac »
Please comment your code! It helps to help you.

Offline Rob Neff

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 429
  • Country: us
Re: windows 32 bit user input
« Reply #4 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.

Offline william427

  • Jr. Member
  • *
  • Posts: 23
Re: windows 32 bit user input
« Reply #5 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