RE: C functions

"Kurt Anderson" <kjanderson-GsknM9TLYgm1Z/[email protected]> Tue, 31 Jul 2007 11:36:16 -0500
Newsgroups gmane.comp.systems.as400.code
Message-ID <89C301922C81C24D866BF970E48B00C201251C0E@HSMAIL01.highsmithnet.com>
Well, the CALLB mentioned in "Programming with..." under the calling a C
Function section is in reference to having the C Function in a local C
runtime, not from the System i.

Side note.  I'm installing Code & VARPG to a laptop, and I couldn't
install it under "Program Files" because it doesn't allow spaces in the
path.  Ouch. 


Kurt Anderson
Application Developer
Highsmith Inc

-----Original Message-----
From: code400-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]
[mailto:code400-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Kurt Anderson
Sent: Monday, July 30, 2007 2:10 PM
To: CODE/400 Discussion &amp; Support
Subject: RE: C functions

Thanks for the responses.

All but 2 of the links from that Tips site are dead links.

I don't know if I was doing some bad searchers, but the only answer I
found on the newsgroup was to install the C runtime on the computers
running the program.

But, aha, the "Programming with..." is something I didn't think of.  I
tried prototyping Qsort as a procedure, I tried prototyping Qsort as a
program, and eventually decided to do it all myself and discovered I
can't Sorta on a datastructure array... But it seems you've given me a
lead.  It recommends using CallB, so I'll be giving that a try sometime
soon.

Thanks!


Kurt Anderson
Application Developer
Highsmith Inc

-----Original Message-----
From: code400-l-bounces+kjanderson=highsmith.com-Zwy7GipZuJhWk0Htik3J/[email protected]
[mailto:code400-l-bounces+kjanderson=highsmith.com-Zwy7GipZuJhWk0Htik3J/[email protected]] On
Behalf Of Claus Weiss
Sent: Monday, July 30, 2007 1:45 PM
To: CODE/400 Discussion &amp; Support
Subject: RE: C functions

Larry wrote the tip but is on this page

http://www-306.ibm.com/software/awdtools/wdt400/about/varpg/support/wint
ips.html

Claus Weiss Visual AD tools, email: [email protected] Dept XF6 IBM Canada
Lab tie 969-3987 Phone(905)413-3987 FAX(905)413-4850 Greetings from
Toronto Rational Software System i - Ecosystem Team


 

             "Jon Paris"

             <Jon.Paris@Partne

             r400.com>
To 
             Sent by:                  <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>

             code400-l-bounces
cc 
             @midrange.com

 
Subject 
                                       RE: C functions

             07/30/2007 02:25

             PM

 

 

             Please respond to

                 "CODE/400

             Discussion &amp;

                 Support"

             <code400-l@midran

                  ge.com>

 

 





> Has anyone managed to get C functions such as qsort & bsearch to work 
> in VARPG?  I use these with dynamically built arrays.

Yes - I've seen these and several others used.

Try the IBM VARPG newsgroup for samples.

There is a very brief bit in the "Programming with ..." manual but it is
not a lot of help.  I thought there used to be stuff in Larry's pages on
the
main IBM web site   but I can't see any sign of it now.


Jon Paris
Partner400

www.Partner400.com


_______________________________________________
This is the CODE/400 Discussion &amp; Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a
moment to review the archives at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries discussion has it's own mailing list.
Information can be found at
http://lists.midrange.com/cgi-bin/listinfo/wdsci-l



_______________________________________________
This is the CODE/400 Discussion &amp; Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a
moment to review the archives at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries discussion has it's own mailing list.
Information can be found at
http://lists.midrange.com/cgi-bin/listinfo/wdsci-l


_______________________________________________
This is the CODE/400 Discussion &amp; Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a
moment to review the archives at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries discussion has it's own mailing list.
Information can be found at
http://lists.midrange.com/cgi-bin/listinfo/wdsci-l


_______________________________________________
This is the CODE/400 Discussion &amp; Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries discussion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsci-l