× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Well then write RPGLE service programs calling Vertex functions and sell
the interface.


On Thu, Sep 19, 2013 at 11:34 AM, DeLong, Eric <EDeLong@xxxxxxxxxxxxxxx>wrote:

Thanks for the refresh Barbara! I've used the old one for years, as I
struggled to get the Vertex product api's converted to RPG Prototypes.

For their part, Vertex does not directly support the use of their APIs
from RPG. They have shown no interest in this matter, which is really
unfortunate, since there's a huge need for a modern sales tax subsystem for
RPG shops. We've have pretty good luck getting this to work, but the
effort has been costly.

Thanks again,
-Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Barbara Morris
Sent: Wednesday, September 18, 2013 5:45 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Convert C Prototype to RPG

On 9/17/2013 6:44 PM, DeLong, Eric wrote:
Larry, even though C is asking for pointers, remember that RPG passes by
reference automatically. The net effect is that you simply define these as
very long character fields, and just pass the variable references normally.
There's a guide (Written by Barbara Morris) that covers some of the quirks
of converting C prototypes to RPG...

http://www.opensource400.org/callc.html

Don't use that one, it's way out of date. Use the one I list at the end
of this post.



D VprtXML PR EXTPROC('VprtXML')
D pConn * value
D pSession *
D pXmlBuf 65500a options(*varsize)
D pXmlResult 65500a options(*varsize)
D pResultSize 10I 0


I would use * VALUE OPTIONS(*STRING) for the pXmlBuf parameter, since
it's an input-only null-terminated string parameter. Larry, if you pass
pass a character string to that type of parameter, you don't have to
bother null-terminating it; the RPG compiler will handle the
null-termination.

Here's a much more up-to-date version of my "Converting C Prototypes to
RPG" document: https://ibm.biz/BdxQbC

(The long version of that URL is

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/We13116a562db_467e_bcd4_882013aec57a/page/Converting%20C%20Prototypes%20to%20RPG
)

--
Barbara
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.