Ok thanks for correcting. I generally don't use windows![]()
Ok thanks for correcting. I generally don't use windows![]()
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
i know i'm one of the singles developing on windows
btw.: u know how 2 get an environment variable?
getenv()
Found this link in google http://www.informit.com/guides/conte...eqNum=136&rl=1
It might help you.
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
informatics (10th July 2007)
Hi,
QProcess supports accessing environment variables for the current process with environment(), setEnvironment() and QProcess::systemEnvironment().
To change the system's environment you probably have to change the registry, see: http://msdn2.microsoft.com/en-us/library/ms682653.aspx
HTH, Bernd
Please take into account that in many corporate systems, users are not administrators and are not guaranteed to have read/write access in the HKLM where these keys are maintained (actually its HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Executive\Path). This had been the source of many a jolly issue where HKLM registry keys are being opened with KEY_ALL_ACCESS which subsequently fails (in other peoples apps i should add)
Pete
informatics (18th July 2007)
BTW the environment variable might not be set permanently. Probably the variable might me reset just after system function.
So i'm not sure whether it works or not.
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Bookmarks