How do you create a console app? i cant seem to find any tutorials or anything on it!

Thanks in advance!
rkinasz :tongue:
Posted on 2002-07-13 23:15:20 by rkinasz
when you link you need to use the /SUBSYSTEM:console option.
and you can use these handy macros to output text and input it.

print MACRO Quoted_Text:VARARG
Txt db Quoted_Text,0
invoke StdOut,ADDR Txt
input MACRO Quoted_Prompt_Text:VARARG
LOCAL Buffer
Txt db Quoted_Prompt_Text,0
Buffer db 1024 dup(?)
invoke StdOut,ADDR Txt
invoke StdIn,ADDR Buffer,512
mov eax, offset Buffer

Hope this helps.
Posted on 2002-07-13 23:27:50 by Qages
Im a total newbie...
do you think you could post a sample project?
i dont know what else i need to do to make it work....

rkinasz :tongue:
Posted on 2002-07-14 00:12:23 by rkinasz
Please take a look at the FAQ - I just updated the console section:
Posted on 2002-07-14 02:10:57 by bitRAKE
We have a FAQ?:eek:

Yea for the FAQ!!
Posted on 2002-07-14 03:39:25 by ThoughtCriminal
Yes there is a FAQ, but the FAQ is in its infancy and needs help from members to grow. If some one does a search through the board and solves their problem and thinks the question should be part of the FAQ, then post a message with links to the solution. I will try to consolidate the posts into groups when I have time. In time it should be a quick directory to the common knowledge that is here.

Think I'll code a tool to help me manage the links...
Posted on 2002-07-14 03:49:29 by bitRAKE
ok, ok....i figured out the console stuff....anyone know how to print colored text?
rkinasz :tongue:
Posted on 2002-07-14 04:01:30 by rkinasz

Invoke SetConsoleTextAttribute,eax,0fch
will make bright white with red text.

Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.
Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
Posted on 2002-07-14 11:51:53 by Qages
Posted on 2002-07-14 15:50:39 by rkinasz