Jeffrey D. Cherry a �crit dans le message : 37497064.C4457F71@utech.net... > Al, > > The GNAT OS_Lib route is a great way to get environment variables when > you want to port your application accross different platforms. If you > are going to stay with Windows, then using the Win32 API is a good > "portability" alternative, again the condition being that you stay > within the Windows family (95/98/NT). Here is a function that I've used > with the OA compiler. I've used it on Windows 95, 98, and NT without > any problems. Hope it helps. 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 Obry Team-Ada Member | --| | --| EDF-DER-IPN-SID- T T I | --| Intranet: http://cln46gb | --| Bureau N-023 e-mail: pascal.obry@edf.fr | --| 1 Av G�n�ral de Gaulle voice : +33-1-47.65.50.91 | --| 92141 Clamart CEDEX fax : +33-1-47.65.50.07 | --| FRANCE | --|------------------------------------------------------------ --| --| http://ourworld.compuserve.com/homepages/pascal_obry --| --| "The best way to travel is by means of imagination"