FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Antonio Linares, run xHarbour function from C code.
Posts: 33
Joined: Thu Jul 04, 2013 09:28 PM
Antonio Linares, run xHarbour function from C code.
Posted: Thu Jul 24, 2014 08:28 PM
Is it possible? I need to run xHarbour function from C code.



Code (fw): Select all Collapse
Function Main()
Fun_C()  // aqui executo a funcao em C
Return

Function calchrb()
Return 1

#pragma begindump

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


HB_FUNC( FUN_C ) 
{
int x;

x = calchrb(); // aqui executo a função em xHarbour a partir do codigo C 

} 

#pragma enddump
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: Antonio Linares, run xHarbour function from C code.
Posted: Fri Jul 25, 2014 01:55 AM
Posts: 33
Joined: Thu Jul 04, 2013 09:28 PM
Re: Antonio Linares, run xHarbour function from C code.
Posted: Fri Jul 25, 2014 12:45 PM

Thanks Daniel

Continue the discussion