xhrb object/function in c/c++ routine - xharbour
This is a discussion on xhrb object/function in c/c++ routine - xharbour ; Hi,
Is it possible to create xhrb object in C routine and pass it to a xharbour
function as a parameter?
I call xharbour function in C routine and want to pass an xhr object to it
to be accesed ...
-
xhrb object/function in c/c++ routine
Hi,
Is it possible to create xhrb object in C routine and pass it to a xharbour
function as a parameter?
I call xharbour function in C routine and want to pass an xhr object to it
to be accesed easily in xharbour.
I'm succeed with passing an int or char* value but can't pass an object.
I'd like to have something like below:
..cpp
void cpp_function()
{
CREATE oxHrbClass object
POPULATE oxHrbClass-> value with "changed value"
CALL callback(xoHrbClass)
}
..prg
PROCEDURE CALLBACK ( oxHrbClass)
? oxHrbClass:value
RETURN
CLASS xHrbClass
DATA value INIT "init value"
ENDCLASS
Thanks in advance for any tips
Rafal
-
Re: xhrb object/function in c/c++ routine
Rafal,
> Is it possible to create xhrb object in C routine and pass it to a
> xharbour function as a parameter?
> I call xharbour function in C routine and want to pass an xhr object to it
> to be accesed easily in xharbour.
> I'm succeed with passing an int or char* value but can't pass an object.
All items are passed equally using the PHB_ITEM container. xHarbour sources
are full of such samples.
Ron
Similar Threads
-
By Application Development in forum Python
Replies: 1
Last Post: 11-22-2007, 02:17 AM
-
By Application Development in forum Python
Replies: 0
Last Post: 11-15-2007, 04:15 AM
-
By Application Development in forum Fortran
Replies: 2
Last Post: 10-16-2007, 04:49 PM
-
By Application Development in forum Perl
Replies: 17
Last Post: 08-04-2007, 02:19 PM
-
By Application Development in forum xharbour
Replies: 2
Last Post: 05-23-2007, 05:21 PM