how may I give pointer as parameter to function in DLL
p1,p2 - pinter
err:=_OWersja(p1,p2)
...
...
???
declare DLL_TYPE_BYTE _OWersja(DLL_TYPE_LPCSTR CFILE1, DLL_TYPE_LPCSTR CFILE2) in WinIP.Dll
#include "FiveWin.ch"
function Main()
local cIn := "Hello world!"
local cOut := Space( Len( cIn ) )
Test( cIn, cOut )
MsgInfo( cOut )
return nil
#pragma BEGINDUMP
#include <hbapi.h>
HB_FUNC( TEST )
{
strcpy( hb_parc( 2 ), hb_parc( 1 ) );
strupr( hb_parc( 2 ) );
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include "string.h"
#include "ctype.h"
char * strupr( char * string )
{
char c, * p = string;
while( ( c = * p ) != '\0' )
* ( p++ ) = _toupper( c );
return string;
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include "string.h"
#include "ctype.h"
char _toupper( char );
char * strupr( char * string )
{
char c, * p = string;
while( ( c = * p ) != '\0' )
* ( p++ ) = _toupper( c );
return string;
}
#pragma ENDDUMP
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 70 guests