Search found 19 matches: cprocname

Return to advanced search

Re: Función "ReturnCall" de Dolphin

... - 1 ) + ")"   oQry     := ::Query( cExecute )   ::NextResult()RETURN oQry ReturnCall (cProcName,aParameters) oServer:ReturnCall("busca_clientes",{ cCodClie }) En tu caso es una lista, muestranos un ejemplo y el storeproceure ...
by carlos vargas
Wed Jun 14, 2023 6:21 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Función "ReturnCall" de Dolphin
Replies: 9
Views: 414

Re: access to window via its :hwnd

... // MessageBox( 0, "DLL unloaded - ", "DLL exit", 0 ); break; } return TRUE; } void pascal __export HBDLLENTRY( char * cProcName ) { hb_itemDoC( cProcName, 0 ); } void pascal __export HBDLLENTRY2( char * cProcName, PHB_ITEM pParam1, PHB_ITEM pParam2 ) { hb_itemDoC( cProcName, ...
by don lowenstein
Sat Jan 06, 2018 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: access to window via its :hwnd
Replies: 10
Views: 1776

Re: funciones de FWH y Harbour en un archivo .txt

... cProcName>],[<nProcLine>])->oError ErrorBlock([<bErrorHandler>])->bCurrentErrorHandler ErrorLevel([<nNewReturnCode>])->nCurrentReturnCode ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5706

Re: create a harbour dll containing functions to be executed

... BEGINDUMP #include <windows.h> #include <hbapi.h> #include <hbapiitm.h> __declspec( dllexport ) LONG pascal DOPROC( char * cProcName, char * cParam ) { PHB_ITEM pItem = hb_itemPutC( NULL, cParam ); if( cProcName ) { hb_itemDoC( cProcName, 1, ( PHB_ITEM ) pItem, 0 ); hb_itemRelease( ...
by rkurian
Thu Sep 08, 2016 8:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4254

Re: create a harbour dll containing functions to be executed

> We can implement it in the function HBDLLENTRY() itself

void pascal __export HBDLLENTRY1( char * cProcName, PHB_ITEM pParam1 )
{
hb_itemDoC( cProcName, 1, pParam1 );

if( HB_ISBYREF( pParam1 ) )
hb_itemPutC( pParam1, hb_retc( -1 ) ); // -1 mean the value returned from cProcName
}
by Antonio Linares
Wed Aug 31, 2016 7:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4254

Re: create a harbour dll containing functions to be executed

... for each function in the DLL? You can implement several functions for each number of params to pass: void pascal __export HBDLLENTRY1( char * cProcName, PHB_ITEM pParam1 ) { hb_itemDoC( cProcName, 1, pParam1 ); } void pascal __export HBDLLENTRY2( char * cProcName, PHB_ITEM pParam1, PHB_ITEM ...
by Antonio Linares
Wed Aug 31, 2016 7:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4254

Re: Funciones en .dll

... está devolviendo un LONG (un número de 32 bits) y además estas recogiendo como número la fecha que le das: return hb_itemGetNL( hb_itemDoC( cProcName, 1, pParam1 ) ) ; puesto que recibes una fecha, primero debes decidir en que formato la vas a usar. Uno sencillo es "AAAAMMDD", ...
by Antonio Linares
Fri Jul 05, 2013 3:54 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones en .dll
Replies: 2
Views: 549

Re: Creation of xHarbour PCODE DLL succeeded

... MessageBox( 0, "DLL unloaded", "DLL exit", 0 ); break; } return FALSE; } void pascal __export HBDLLENTRY( char * cProcName ) { hb_itemDoC( cProcName, 0 ); } void pascal __export HBDLLENTRY2( char * cProcName, PHB_ITEM pParam1, PHB_ITEM pParam2 ) { hb_itemDoC( cProcName, ...
by Marco Turco
Sat Nov 19, 2011 8:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation of xHarbour PCODE DLL succeeded
Replies: 25
Views: 10179

Re: Creation of xHarbour PCODE DLL succeeded

... MessageBox( 0, "DLL unloaded", "DLL exit", 0 ); break; } return FALSE; } void pascal __export HBDLLENTRY( char * cProcName ) { hb_itemDoC( cProcName, 0 ); } void pascal __export HBDLLENTRY2( char * cProcName, PHB_ITEM pParam1, PHB_ITEM pParam2 ) { hb_itemDoC( cProcName, ...
by Marco Turco
Thu Nov 17, 2011 8:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation of xHarbour PCODE DLL succeeded
Replies: 25
Views: 10179

OT - RPC Disponible en Harbour

... RPC in HBNETIO protocol + added the following client functions: check if function/procedure exists on the server side: NETIO_PROCEXISTS( <cProcName> ) -> <lExists> execute function/procedure on server the side, do not wait for confirmation: NETIO_PROCEXEC( <cProcName> ...
by Lautaro
Wed Jan 06, 2010 7:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: OT - RPC Disponible en Harbour
Replies: 2
Views: 959

Re: Creating a LIB or DLL

Dave,

> I have my C++ DLL calls working very well

very good :-)

pResult = hb_itemDoC( cProcName, 3, pItem1, pItem2, pItem3, 0 );
by Antonio Linares
Tue Apr 14, 2009 11:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34891

Re: Creating a LIB or DLL

Dave,

You missed two "*" here:

HB_EXPORT char * PASCAL _export HBDLLSTRING4( char * cProcName, char * cText1, char * cText2 )
by Antonio Linares
Thu Apr 09, 2009 10:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34891

Re: Creating a LIB or DLL

... that the DLL will work outside of harbour. Here is my first attempt at my c code. It is very incomplete and compiles with the expected errors of cProcname, pitem1, and pitem2 Parameter is never used in function HBDLLSTRING2. #include <windows.h>#include <stdio.h>int __declspec(dllimport) ...
by Dave Zowasky
Tue Apr 07, 2009 6:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34891

Re: Creating a LIB or DLL

Dave,

Change this line this way:

HB_EXPORT char * PASCAL HBDLLSTRING2( char * cProcName, LONG pItem1, LONG pItem2 )
by Antonio Linares
Thu Apr 02, 2009 6:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34891

Re: Creating a LIB or DLL

... working (once the bug fix that I described is applied). I just missed to use __export in maindll.c :-) LONG PASCAL __export HBDLLENTRY2( char * cProcName, LONG pItem1, LONG pItem2 ) Here you have the DLL to test it (using FWH\samples\babu.prg): http://www.mediafire.com/?sharekey=d0453478149576bfe7c82ed4b8f0c380c56966ad7665c154c95965eaa7bc68bc
by Antonio Linares
Sat Mar 28, 2009 8:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34891
Next

Return to advanced search