Page 1 of 1

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

Posted: Wed Aug 28, 2024 9:51 pm
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

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

Posted: Fri Sep 20, 2024 12:19 am
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

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

Posted: Fri Sep 20, 2024 9:20 am
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