Search found 21 matches: hbdllentry

Return to advanced search

Re: access to window via its :hwnd

... hDLL ) return nil *********** FUNCTION CR_LF() RETURN CHR(13) + chr(10) ************* **************************************** DLL FUNCTION HBDLLENTRY( cProc AS LPSTR ) AS LONG PASCAL LIB hDLL DLL FUNCTION HBDLLENTRY2( cProc AS LPSTR, pItem1 AS LONG, pItem2 AS LONG ) AS LONG PASCAL LIB hDLL ...
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: 1778

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: 4256

Re: create a harbour dll containing functions to be executed

... advance. > Is pass by reference "@" a way to modify the value in the DLL and return to the EXE ? We can implement it in the function HBDLLENTRY() itself > Do you have to have the same number of parms for each function in the DLL? You can implement several functions for each number ...
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: 4256

usando DLL

... que me han solicitado entregarlo como DLL Ya lo he compilado y funciona, lo invoco de esta forma y carga la aplicación Function TestDll() HbDLLEntry( "MAIN" ) return nil DLL FUNCTION HBDLLENTRY( cProc AS LPSTR ) AS LONG PASCAL LIB "psmweb.dll" Mi pregunta es hay alguna ...
by Francisco
Thu Jul 18, 2013 2:04 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: usando DLL
Replies: 1
Views: 507

Re: Creation of xHarbour PCODE DLL succeeded

... break; case DLL_PROCESS_DETACH: 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 ...
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: 10182

Re: Creation of xHarbour PCODE DLL succeeded

... break; case DLL_PROCESS_DETACH: 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 ...
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: 10182

Re: Creation of xHarbour PCODE DLL succeeded

I am checking FWH samples babu.prg and babudll.prg and I noticed that HBDLLENTRY2 is not defined in xHarbour maindll.c. There is only a HBBDLLENTRY:: I have added the HB_EXPORT clause to it as the DLL must export it in order to use it: void HB_EXPORT HBDLLENTRY( ...
by Antonio Linares
Wed Nov 09, 2011 7:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation of xHarbour PCODE DLL succeeded
Replies: 25
Views: 10182

How to create DLL (suning testdll.prg & tutor01.prg) ?

... buildhd.bat for tutor01.prg) as suggested. But it does not work well. When i run the testdll.exe, it does not run well. Sems that the function HBDLLENTRY("MAIN") in testdll.prg does not open the tutor01.dll or it works not well (without coming bacnk in the EXE file) Any help ? Grazie ...
by Romeo
Tue Mar 09, 2010 4:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to create DLL (suning testdll.prg & tutor01.prg) ?
Replies: 3
Views: 764

Creazione di DLL con Harbour

... che il tutor01.prg (con buildhd.bat) come indicato. Non mi da errori di compilazione o di link, ma semplicemente sembra che la funzione HBDLLENTRY("MAIN") in testdll.prg non apre o non lancia la libreria tutor01.dll o se la lancia poi non rientra al chiamante. Qualcuno ha provato ...
by Romeo
Mon Mar 08, 2010 6:04 pm
 
Forum: All products support
Topic: Creazione di DLL con Harbour
Replies: 0
Views: 493

Re: Creating a LIB or DLL

Antonio, I have this in my def LIBRARY BABUDLL.DLL EXPORTS DllEntryPoint @1 ; DllEntryPoint HBDLLENTRY @2 ; HBDLLENTRY HBDLLENTRY1 @3 ; HBDLLENTRY1 HBDLLENTRY2 @4 ; HBDLLENTRY2 __DbgWndProc @6 ; __DbgWndProc __WndProc @5 ; __WndProc ___CPPdebugHook @7 ; ___CPPdebugHook ...
by Dave Zowasky
Sat Mar 21, 2009 12:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34895

Re: Creating a LIB or DLL

... it again and build the DLL: BOOL WINAPI __export DllEntryPoint( HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved ) LONG PASCAL __export HBDLLENTRY( char * cProcName ) LONG PASCAL __export HBDLLENTRY1( char * cProcName, LONG pItem ) LONG PASCAL __export HBDLLENTRY2( char * cProcName, ...
by Antonio Linares
Fri Mar 20, 2009 8:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34895

Re: Creating a LIB or DLL

Dave, These lines should be inside the DEF file: DllEntryPoint @894 ; DllEntryPoint HBDLLENTRY @895 ; HBDLLENTRY HBDLLENTRY1 @896 ; HBDLLENTRY1 HBDLLENTRY2 @897 ; HBDLLENTRY2 Those numbers can be different. If you don't have them, then it means that maindll.obj is ...
by Antonio Linares
Fri Mar 20, 2009 8:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creating a LIB or DLL
Replies: 138
Views: 34895

Re: create a pcode dll

... If yes, then you are calling a C function and you can not supply a Harbour item to it. Please review the use of HBDLLENTRY...() in that same post. You can supply a Harbour item to those functions, even if they are arrays :-)
by Antonio Linares
Fri Jan 09, 2009 11:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a pcode dll
Replies: 25
Views: 5876

... TESTDLL.PRG: // Using Harbour DLLs // To build Tutor01.dll do: buildhd.bat tutor01 #include "FiveWin.ch" function Main() local Test_String HbDLLEntry( "MAIN" ) Test_String := "Hello world from AC!" //String passed HbDLLEntry1( "ONEPARAM", Test_String) //Passing a String to DLL function ...
by angelo.c
Wed Jun 25, 2008 1:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Windows 32-bit DLLs with Harbour Code - Any More Progress
Replies: 14
Views: 5860

Vikthor, Ese es el problema, por eso no te funciona, porque no está exportada la función HBDLLENTRY. Estás usando xHarbour ? Revisa xharbour\source\vm\maindll.c y comprueba que tienes esto: LONG HB_EXPORT PASCAL HBDLLENTRY( char * cProcName ) { hb_itemDoC( ...
by Antonio Linares
Thu Nov 23, 2006 7:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creación de DLL con xHarbour
Replies: 8
Views: 1835
Next

Return to advanced search