wxSetEnv for Win32 (now seems to work)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-27 00:21:29 +00:00
parent 1fb454751d
commit 308978f6aa
5 changed files with 74 additions and 10 deletions

View File

@@ -207,9 +207,9 @@ WXDLLEXPORT bool wxHandleFatalExceptions(bool doit = TRUE);
// Environment variables
// ----------------------------------------------------------------------------
// wxGetenv is declared in wxchar.h, but define a wrapper/synonym for it for
// consistency with wxSetEnv
inline const wxChar *wxGetEnv(const wxString& var) { return wxGetenv(var); }
// returns TRUE if variable exists (value may be NULL if you just want to check
// for this)
WXDLLEXPORT bool wxGetEnv(const wxString& var, wxString *value);
// set the env var name to the given value, return TRUE on success
WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value);