Page 2 of 2

Re: SetFocus question.

Posted: Tue Feb 21, 2017 7:11 am
by Antonio Linares
You have to define buffer and dwSize

Code: Select all | Expand

#pragma BEGINDUMP

#include <windows.h>
#include <hbapi.h>

HB_FUNC( GETCONSOLEWINDOW )
{
   char * szText = "Hello";
   DWORD dwSize = strlen( szText );

   hb_retclen( buffer, dwSize );
}

#pragma ENDDUMP