I would like to show cTest inside the messagebox.
Thanks in advance
Otto
- Code: Select all Expand view RUN
#include "FWCE.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg, cText := "Hello world! "
local hReturn := ""
hReturn = TESTFUNKTION( "216.117.77.7" )
msginfo(hReturn)
return nil
//----------------------------------------------------------------------------//
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( TESTFUNKTION )
{
LPSTR cTest= ( hb_parc( 1 ) ) ;
//MessageBox( GetActiveWindow(), ( char * ) cTest, ( char * ) cAgent,0);
//MessageBox (NULL, _T( &cTest) , _T("Hello"), 0);
MessageBox (NULL, _T("Hello") , _T("Hello"), 0);
hb_retc( ( char * ) cTest);
}
#pragma ENDDUMP