From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f58edf3a3fc00db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-20 16:17:35 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!feeder.qis.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Chris Newsgroups: comp.lang.ada Subject: Re: Interface to C; Storage_Error Date: Wed, 20 Dec 2000 23:57:28 GMT Organization: Deja.com Message-ID: <91rh14$vco$1@nnrp1.deja.com> References: <91ondg$lpu$1@nnrp1.deja.com> <3a409667.1742507013@paragate1> <91qote$9cj$1@nnrp1.deja.com> NNTP-Posting-Host: 63.164.137.27 X-Article-Creation-Date: Wed Dec 20 23:57:28 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) X-Http-Proxy: 1.1 x56.deja.com:80 (Squid/1.1.22) for client 63.164.137.27 X-MyDeja-Info: XMYDJUIDenderx12 Xref: supernews.google.com comp.lang.ada:3301 Date: 2000-12-20T23:57:28+00:00 List-Id: After trying many different configurations, I now seem to be making negative progress. So I'm going back to the C code and getting my brain out of Ada for a few moments... in case this helps someone make sense of what I should do, here's what the code looks like in C: typedef void* SRV_HANDLE; typedef void* RSLT_HANDLE; typedef void* CTX_HANDLE; SRV_HANDLE hand = 0; RSLT_HANDLE results; CTX_HANDLE ctx = 0; char name[255]; double value = 0.0; status = InititalizeLibrary("config.txt", &hand); // omitting error checking here status = LookupResults(hand, "keystring", &results); // reset these after every lookup ctx = 0; name[0] = 0; status = GetNextVal(hand, results, &ctx, name, &value); // this call can be repeated to get a series of name/value // pairs. ctx is the handle to keep track of repeated // calls, and starts at the beginning when 0. Clear as mud? I'm stumped, and sad that my Ada is so rusty. --chris Sent via Deja.com http://www.deja.com/