flat assembler
Message board for the users of flat assembler.

Index > Windows > Console Out

Author
Thread Post new topic Reply to topic
SCRJ



Joined: 17 Jun 2006
Posts: 2
SCRJ 17 Jun 2006, 10:36
Hi

I tried to make an output in the win. Console.
I used the header "WIN32WXP.inc"

My question:

How can I give "Hello World" out on a Win32 Console?

Thanks Very Happy

*Sry, my English... Rolling Eyes *
Post 17 Jun 2006, 10:36
View user's profile Send private message Reply with quote
WiESi



Joined: 15 May 2006
Posts: 14
Location: Austria
WiESi 17 Jun 2006, 11:39
Win32-API:
Quote:
The WriteConsole function writes a character string to a console screen buffer beginning at the current cursor location.

BOOL WriteConsole(

HANDLE hConsoleOutput, // handle to a console screen buffer
CONST VOID *lpBuffer, // pointer to buffer to write from
DWORD nNumberOfCharsToWrite, // number of characters to write
LPDWORD lpNumberOfCharsWritten, // pointer to number of characters written
LPVOID lpReserved // reserved
);


Parameters

hConsoleOutput

Identifies the console screen buffer to be written to. The handle must have GENERIC_WRITE access.

lpBuffer

Points to a buffer that contains characters to be written to the screen buffer.

nNumberOfCharsToWrite

Specifies the number of characters to write.

lpNumberOfCharsWritten

Points to a 32-bit variable that receives the number of characters actually written.

lpReserved

Reserved; must be NULL.

_________________
JavaAmp
Post 17 Jun 2006, 11:39
View user's profile Send private message Visit poster's website Reply with quote
SCRJ



Joined: 17 Jun 2006
Posts: 2
SCRJ 17 Jun 2006, 12:01
Yes, I know, but:
I don't get any output Sad

Edit:
OK, it works now. Rolling Eyes Embarassed Laughing

THX
Post 17 Jun 2006, 12:01
View user's profile Send private message 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.