Can I use C-program-source code in Visual LANSA?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 120
Joined: Thu Feb 11, 2016 12:01 am

Can I use C-program-source code in Visual LANSA?

Post by Joerg Hamacher »

Hi,

I have a C program sourcecode (not a running program) for a punycode converter to encode and decode mailadresses with German umlauts.
Is there a way to convert this code into something that I can use in Visual LANSA?

Kind regards,
Joerg
KEC
Posts: 12
Joined: Fri Jun 04, 2021 4:58 pm

Re: Can I use C-program-source code in Visual LANSA?

Post by KEC »

Hi

If you have c code, the easiest way is to wrap it in a Built In Function. See the Technical Reference guild, Appendix B.
https://docs.lansa.com/15/en/LANSA015/D ... I_0005.htm

There are samples in that section, and at the very last page, a skeleton for C code.

You could also see very old samples in the LANSA\Imports\ov_bifs
Tim McEntee
Posts: 57
Joined: Thu May 26, 2016 8:46 am

Re: Can I use C-program-source code in Visual LANSA?

Post by Tim McEntee »

Hi Joerg

I have not done this with C

Can you use the Lansa call command.

This will work with a Vl/Windows environment.

For VL/Web you would do a call to a server module that would run your program and return the value.

Tim
Post Reply