flat assembler
Message board for the users of flat assembler.

Index > Windows > Could you help me again?

Author
Thread Post new topic Reply to topic
ProgrammierenMV



Joined: 24 Jan 2004
Posts: 5
Location: Germany
ProgrammierenMV 01 Feb 2004, 18:52
O.K. It's my third thread in two weeks, and it's all some Can-you-help-me?-stuff. Why shouldn't I go on? My question to the assembler world:

How can I make user input ( like cin in C++ or ReadLn in TurboPascal ) ???
Post 01 Feb 2004, 18:52
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 01 Feb 2004, 19:14
i personally dont exactly know, but try to find some tutorial on 'console'. You also have to set 'console' flag in PE header. Other way is to create window with edit box control (the standard windows' text boxes used by 3/4 programs), but this isn't "like cin or readln".

Also take a look at 'ReadConsole', 'ReadConsoleInput' and 'ReadFile' APIs
Post 01 Feb 2004, 19:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
ronware



Joined: 08 Jan 2004
Posts: 179
Location: Israel
ronware 01 Feb 2004, 19:28
ProgrammierenMV wrote:

How can I make user input ( like cin in C++ or ReadLn in TurboPascal ) ???


It depends on whether you are writing a 'console' or a 'gui' application.

If you are making a console app, (format PE console) then you will need to use
ReadConsole, which is a Win32 API call. Look on msdn.microsoft.com for
details on how to use it.

If you are making a gui app, (format PE gui) then you can use edit boxes for
input, which is easy, or you can intercept the WM_CHAR messages passed to your
window and act on them directly however you want (which is flexible).

Note that a console app *can* put up a dialog and use edit boxes, and a gui
app *can* create a console window and use ReadConsole... but usually, things
are done like I indicated.
Post 01 Feb 2004, 19:28
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.