|
Here's a C module that exports "inC" and imports "inRPG" --------------------------------------------------------- int inC; extern int inRPG; extern void WORKRLE( void ); int main(int argc, char* argv[]) { inC = 1; inRPG = 1; WORKRLE(); return; } ---------------------------------------------------------- and the RPG module WORKRLE: D itsInC s 10i 0 import('inC') D itsHere s 10i 0 export('inRPG') c eval itsInC = 2 c eval itsHere = 3 c eval *inlr = *on James H H Lampert wrote:
Is there a fairly simple way to have a variable in an ILE program that is accessible across module boundaries, with one module in C, and the other in RPG?-- JHHL
As an Amazon Associate we earn from qualifying purchases.
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.