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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54b43bce78b18737 X-Google-Attributes: gid103376,public From: "Jeffrey D. Cherry" Subject: Re: Dos Environment varables Date: 1999/05/25 Message-ID: <374AD287.1D67265E@utech.net>#1/1 X-Deja-AN: 481953419 References: <7i3stm$o4m$1@news-int.gatech.edu> <37458BC1.CC63E63E@Maths.UniNe.CH> <7i42q7$c48$1@news-int.gatech.edu> <37497064.C4457F71@utech.net> <7ie3a6$aph$1@clnews.edf.fr> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------1803034122A72F6C5BA45340" X-Trace: news.impulse.net 927650455 199 206.61.179.61 Organization: Logicon Geodynamics MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-25T00:00:00+00:00 List-Id: This is a multi-part message in MIME format. --------------1803034122A72F6C5BA45340 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit For both Al and Pascal ... Pascal Obry wrote: > > Yes and the best solution could be POSIX. It is compiler and platforms > independant. > > Look at Florist for a UNIX implementation and under my homepage for > a partial (yet very usefull) POSIX for Win32. > > Pascal. > Pascal is quite right. I've used his Win32POSIX packages successfully on Windows systems (i.e., 95/98/NT). I've also used them with ObjectAda 7.1.2a at work and with GNAT 3.11p at home, and have never experienced a problem. The POSIX package bodies show how the Win32 API can be used to implement the POSIX functionality and thus are quite instructive for those learning the Win32 API. A great example is demo6 in the aforementioned Win32POSIX binding. Is uses the package POSIX.POSIX_Process_Environment and demonstrates its many services for dealing with environment variables and strings. So Al, although the Win32 API is popular, I would suggest that you tuck my previous example code into a nice bit bucket somewhere and follow the example shown in the demo6 program. Pascal rightly points out that POSIX is a much more portable means of dealing with environment variables, and other operating system services as well. Regards, Jeffrey D. Cherry Logicon Geodynamics --------------1803034122A72F6C5BA45340 Content-Type: text/x-vcard; charset=us-ascii; name="jdcherry.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Jeffrey D. Cherry Content-Disposition: attachment; filename="jdcherry.vcf" begin:vcard n:Cherry;Jeffrey D. tel;fax:(805)734-4779 tel;work:(805)606-8838 x-mozilla-html:FALSE org:Logicon Geodynamics adr:;;P.O. Box 5548;Vandenberg AFB;CA;93437;USA version:2.1 email;internet:jdcherry@utech.net title:Senior Software Engineer/Analyst note;quoted-printable:BSEE, MSCSc=0D=0AComputer Science Instructor x-mozilla-cpt:;-6096 fn:Jeffrey D. Cherry end:vcard --------------1803034122A72F6C5BA45340--