我用VB写了一段代码,望能将其转换成delphi代码,如下:
Sub AddPath()
dim AcadApp as Object
dim CurPath As Variant
dim Path as string
Path="c:\wmz"
set AcadApp=CreatObject("AutoCAD.Application.16)
AcadApp.Visible=True
AxadApp.Application.Preferences.Files=Path & ";" & AxadApp.Application.Preferences.Files
AcadApp.Quit
end Sub
注:以上代码是将路径为"c:\wmz"的加到AutoCAD的支持路径的最前面中去
Sub AddPath()
dim AcadApp as Object
dim CurPath As Variant
dim Path as string
Path="c:\wmz"
set AcadApp=CreatObject("AutoCAD.Application.16)
AcadApp.Visible=True
AxadApp.Application.Preferences.Files=Path & ";" & AxadApp.Application.Preferences.Files
AcadApp.Quit
end Sub
注:以上代码是将路径为"c:\wmz"的加到AutoCAD的支持路径的最前面中去
HKEY_USERS\S-1-5-21-2000478354-842925246-1202660629-500\Software\Autodesk\AutoCAD\R16.0\ACAD-201:804\Profiles\<<未命名配置>>\General
delphi里面有没有搜索注册表关键字的函数呢,请不吝赐教!