Antonio Linares, run xHarbour function from C code.

Post Reply
emotta_no
Posts: 33
Joined: Thu Jul 04, 2013 9:28 pm

Antonio Linares, run xHarbour function from C code.

Post by emotta_no »

Is it possible? I need to run xHarbour function from C code.



Code: Select all | Expand


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

 
emotta_no
Posts: 33
Joined: Thu Jul 04, 2013 9:28 pm

Re: Antonio Linares, run xHarbour function from C code.

Post by emotta_no »

Thanks Daniel
Post Reply