>Hi,
>
>When I test the GETENV(), I can only get some environments. And if I use SET TESTING=1 in DOS prompt, the run getenv("TESTING"), there's just no return. May I ask why?
If you start up a DOS prompt, you're creating a new Virtual DOS Machine (VDM) which is separate from the 32 bit environment and from other VDMs that may be running. You can test this for yourself - start up 2 DOS prompts, make a SET command in one, then type SET in the other - the value won't appear there.
If you want environment variables to appear globally, in Win9x/ME you can set them in AUTOEXEC.BAT. Under NT/W2K look at System or System/Advanced in Control Panels.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up