SetFocus question.

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: SetFocus question.

Post by Antonio Linares »

You have to define buffer and dwSize

Code: Select all

#pragma BEGINDUMP

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

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

   hb_retclen( buffer, dwSize );
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply