Welcome, Guest.
Please login or register.
problem with ReadConsoleOutputA
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Programming  ›  problem with ReadConsoleOutputA
Users Browsing Forum
No Members and 1 Guests

problem with ReadConsoleOutputA  This thread currently has 1,706 views. Print Print Thread
1 Pages 1 Recommend Thread
stapper
July 19, 2011, 12:28pm Report to Moderator Report to Moderator
Baby Member
Posts: 1
Hi,

Iam new in xblie, i have problem when Compiling it always give the message "type mismatch at (50)". The problem is in the last line.

Here is the code

' #####  PROLOG  #####
' ####################
'
PROGRAM     "buffertest"
VERSION     "0.0001"
CONSOLE
'
     IMPORT     "xst"   ' Standard library : required by most programs
     IMPORT     "kernel32"
     IMPORT     "xio"
'

DECLARE FUNCTION  Entry ()
'
'
' ######################
' #####  Entry ()  #####
' ######################
'
FUNCTION  Entry ()

     SMALL_RECT srctReadRect,srctWriteRect
  CHAR_INFO chiBuffer[160]  
  COORD coordBufSize,coordBufCoord

     hStdout = GetStdHandle(STD_OUTPUT_HANDLE)
     hNewScreenBuffer = CreateConsoleScreenBuffer($$GENERIC_READ|$$GENERIC_WRITE,$$FILE_SHARE_READ|$$FILE_SHARE_WRITE,NULL,$$CONSOLE_TEXTMODE_BUFFER,NULL)                          
     SetConsoleActiveScreenBuffer(hNewScreenBuffer)
     srctReadRect.Top = 0
     srctReadRect.Left = 0
     srctReadRect.Bottom = 1
     srctReadRect.Right = 79
     coordBufSize.x = 2
     coordBufSize.x = 80
     coordBufCoord.x = 0
     coordBufCoord.y = 0
     ReadConsoleOutputA(hStdout,chiBuffer,coordBufSize,coordBufCoord,&srctReadRect)


END FUNCTION
END PROGRAM

Can someone help me ?

Regards

patrick
Logged Offline
Private Message Private message
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Programming  ›  problem with ReadConsoleOutputA

Thread Rating
There is currently no rating for this thread