Hi Antonio and other FiveLinuxers
I have been playing around with the xHarbour / FiveLinux interface to C with, amongst other things, an OpenOffice library on my list of things to do.
I know how to write C code, call it from xHarbour code, pass parameters to it and return values from it. I have yet to play with passing a variable number of parameters to my C function but that should be OK .
I can call an xHarbour function (say FUNCTION MyFunction()) from C code with HB_FUN_MYFUNCTION();. What I don't know is how to pass parameters to it from C code and how it can pass a return value back to my C code. Is this possible and how does one do it?
Also to control OpenOffice under Linux I need to use UNO objects, the provided library being C++ code. I gather I can compile and link C++ code using gcc but can I simply make a library of C++ code in this way and call it from my C code? Is parameter passing and return values handled the same?
Thanks
Doug