how to set a environnement value just for one applicatio

If you have a programming question, please feel free to post it here. Non-programming questions will be moved to Miscellaneous or deleted.

how to set a environnement value just for one applicatio

by iamnot » 22/04/09 09:19

hi all
i have a question
i want to know if i can set a environment value like

Code: Select all
Cache = %USERPROFILE%\Local Settings\Temporary Internet Files


in the registry for just one application in Delphi

the case is that i need a TWebBrowser control in my application, this
control need to be use in mode no connection, so i make a directory
for this control to save some file, but i have to change this 'Cache'
key to make the application use this special directory, and that
works, but if the application was not exit normally, the environment
value won't be reset correctly

i have read some articles like 'customization of web browser control',
but they do just change the graphic of the web control
so, any one can help me?

PS: sorry for my poor english
iamnot
Member
Member
 
Posts: 1
Joined: 22/04/09 09:08

Re: how to set a environnement value just for one applicatio

by Kambiz » 24/04/09 14:03

I don't know how to set the cache directory for an instance of browser. However, I know if you set and reset registry entry inside a try/finally block, the entry will reset even if the application crashes.
Kambiz

Donate a cup of food for free: Click to Give @ The Hunger Site

Kambiz
Administrator
Administrator
 
Posts: 1760
Joined: 07/03/03 19:10
Location: Tehran, Iran


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 0 guests