How to use C/C++ interfaces from Xbase++?

I Love Xbase++ (ILX)
The portal for Xbase++ developers worldwide
Status
Not open for further replies.

Andreas Herdt

Member
I am here to help you!
Feb 1, 2021
31
4
8
Customer Identifier
E104394
To use C/C++ libraries from Xbase++ their interfaces can be declared with the commands EXTERN, STRUCTURE and UNION in the prg source code. These commands are suitable to bind to any interface implemented with the cdecl or stdcall calling convention. In addition, callbacks can be modeled with the DllCallback class.

The Binary Access Package (BAP), which is also included with Xbase++, is no longer being developed and has been replaced by the above-mentioned commands and classes.

See also:
Xbase++ documentation Command EXTERN
Xbase++ documentation Command STRUCTURE | UNION
Xbase++ documentation Class DllCallback
 
Last edited by a moderator:

Claudio Driussi

New member
I am using always the latest Xbase++ build
Oct 20, 2022
1
0
1
Customer Identifier
E082979
Hi, Andreas
I would like to try to write some C/C++ for Xbase++
I'm searching for the most lightweight solution, no need of GUI, only the compiler and the old style Unix like make. Do you have some tip?
The long term goal is to embed Python scripting into Xbase++. I know, Xbase++ is great, but python has so many open source resources and embed it into applications can be a great boost.
 

Steffen F. Pirsig

Member
Staff member
I am here to help you!
Feb 3, 2021
42
3
14
8
Customer Identifier
E098079
Hi Claudio,
good question regarding C/C++ code with Xbase++. I wrote a small post here to cover your question.

Regarding your ultimate goal with Python, we already have that as a feature request pending - like having a RunPyton() function like we have RunRexx(). Maybe it is a good idea to ask the Xbase++ users about that as i see also a lot of potential for a feature like that. Talking about ML/mathematics and so on.
 
  • Like
Reactions: Claudio Driussi

Osvaldo Ramirez

New member
I am using always the latest Xbase++ build
Oct 20, 2022
6
1
3
Mexico
jobbisoft.com
Customer Identifier
A065550
Hello Guys, First, Thanks to all for your support, Second, Is there a sample to see how to create a C/C++ DLL and then load it from Xbase++ ?;

Talking about Python, It will be excellent option to see how to integrate it into Xbase++

Best Regards
Osvaldo Ramirez
 

Steffen F. Pirsig

Member
Staff member
I am here to help you!
Feb 3, 2021
42
3
14
8
Customer Identifier
E098079
Hello Guys, First, Thanks to all for your support, Second, Is there a sample to see how to create a C/C++ DLL and then load it from Xbase++ ?;

Talking about Python, It will be excellent option to see how to integrate it into Xbase++

Best Regards
Osvaldo Ramirez
See my previous post and the referenced docs here:
 
Status
Not open for further replies.