这样写对吗?
Reg.RootKey := HKEY_CURREN_USER; if Reg.OpenKey('\SYSTEM\CurrentControlSet\Control\Session Manager\Environment', True) then
begin
addpath := Reg.ReadString('path');
if pos('c:\oracle\ora92\bin', addPath) <= 0 then
Reg.WriteString('path', addpath + ';c:\oracle\ora92\bin');
end;为什么写了后path值都无效了?原来的那些路径都失效了
Reg.RootKey := HKEY_CURREN_USER; if Reg.OpenKey('\SYSTEM\CurrentControlSet\Control\Session Manager\Environment', True) then
begin
addpath := Reg.ReadString('path');
if pos('c:\oracle\ora92\bin', addPath) <= 0 then
Reg.WriteString('path', addpath + ';c:\oracle\ora92\bin');
end;为什么写了后path值都无效了?原来的那些路径都失效了
解决方案 »
- 如何读取网站首页的标题和链接并嵌入到软件中?
- 谁有在delphi7环境下发送和接受电子邮件的原代码?*(最好是带附件发送的)谢谢!
- 关于判断 Image1.Picture.Assign(nil) 是否为空
- 超难的问题
- [新手愧问]在Delphi中使用FastReport做数据库报表时,如何在运行期改变报表标题?
- 查询的问题????
- 散分了。
- 在quickrep中的难题!!!!!!!!!!!!!!!!!!!!!!1
- 如何把字符串中的每一个字符转化成为ascii码?
- 怎么在Delphi中访问EXCEL数据库
- 大哥们,教我做开发文档~~
- 偶用DELPHI做数据库,如何在DBGRID内的某一列中嵌入checkbox控件,并实现多行选择
-------------------
addpath + ';c:\oracle\ora92\bin'???
记得以前有人遇过读写不了REG_MULTI_SZ类型的数据,最后是没用TRegistry,用API来实现。