[求助]怎样将.odcl文件编译成.vlx文件?
<div class="t_msgfont" id="postmessage_11398612">本人是opendcl新手,用opendcl和autolisp编了个小程序,但不知道怎样将.odcl和.lsp文件编成一个.vlx文件?<br/>;----------------</div><div class="t_msgfont">按照OPENDCL的帮助文件提示:</div><div class="t_msgfont">将OpenDCL文件保存成LSP文件后,一起做成VLX文件,在VLISP编辑器出现<br/>错误: 编译器发现致命错误 "**.odcl.lsp"<br/>请教高手怎么生成带OPENDCL对话框的VLX?</div> 非常感谢 学习了 我也遇到这个问题,,,,,求解 To secure your source from prying eyes, you’ll want to encrypt it into a VLX file. Of course this isn’t 100% secure, as almost everything is hackable, but it will keep out the majority of the snoopers. Fortunately OpenDCL also gives us a means to embed our ODCL project file into our LSP source code so it will also be protected. Follow the steps below to securely embed your ODCL project into a VLX file.Open your ODCL project in the Studio. Go to File-> Save As and change the file extension to goodA good naming convention to follow is FileName.odcl.lsp, this way you know the file was generated from an ODCL file and not a typical LSP file. The Studio will encode your project to Base64 and wrapping in LSP. You can now open the intermediate .odcl.lsp file in any text editor and copy it into your LSP source file. Add a (setq) around the copied encoded string
16
OpenDCL Tutorial: DCL Has Evolved!
and replace the (dcl_Project_Load) with (dcl_project_import). It should look something like this for our AU Block Tool example:
(defun C:AUBT ( / )
(command "OPENDCL")
(setq project
'("YWt6A+2rAADje5J3BuKT5SUSaplrubH8/59gNmIW3chwX9BPCPOTpj5WcWZWXLi/uMNmLXeH8JW7"
"aGmpnnnybszkZBSMfivXPG8Ub3Rb37bD//xef9drLKtpYFSbe3tfemZyK9XU1JzgDQiT50fF4I8G"
"+KO7QP2okueHmEmhAqGB4pHEDXnBYvqWGZhkhmDqPmak3nAknsWGAWUkX36GhUp+/ewzO32BISL9"
"Nyg8X6o+Q5o9b5rco3ZzznzBw/uZdR9nANW/TbsGQGmTJDIr8Wgj1RnVeHeClj9cqLwMMM9ikVEc"
"MH8AETpEb5WuXJx0gmAHIE9MdI5Rz2SOEl3YUL4Kl07t3uqVZ4b/ex76Hmw6ccJK3WLhYphpSyGs"
"hnWyYTRtMxIS/8rfLTpNxIZBQJAd4PMxHnQmcJ0tH7FJralcreZizI2AFiCZisFpiGH6o1mSSRLR"
"S/kUUb0sAWe9Ucl58sGkrPzvG8wguBG48ccYRxUCwy2m/byAIqZjSIWzRAZlnNUXRbpVgJPOZyQf"
"XQDkH1EAVjtNChy7ZEFpMURckgMI5VShpvpJkT8ud7yJ3yA2dlL46yxyzbNiwPUxo/cxYsSn5lPg"
"is/OUXaFXR+BKKafH0MPp2VTvKBHIlnfAe3ApLqLYXeFefyhXZLTvAC3GGkE0d3vtVQsAesGWHIV"
"OQ/1zOvTEhtVJae0KMjM6+NeSEZg17Vwji7IzLlJhYHgr3l9")
)
(dcl_project_import project nil nil)
(dcl_Form_Show AUBlockTool_PalBlkTool)
(princ)
)
Note, don’t copy the encoded string above, as it’s been truncated for readability and won’t work.
Now that you’ve copied the encoded string into your LSP file, you can delete the intermediate .odcl.lsp file if you wish. Now let’s build the VLX file. In the VLIDE, save your LSP then go to File->Make Application->New Application Wizard… On the first screen select “Simple”, then hit Next. Browse to a folder to save you application. You can save it anywhere you like. Then give you application a name. We’ll use “AUBT” for this example; therefore “AUBT.VLX” will be created. Hit Next. On the third screen, hit “Add” and select your LSP source file; “AUBlockTool.lsp” in this case. Hit next again, and then on the last screen ensure “Build Application” is checked and hit the Finish button. Your application has now been compiled into a VLX file and can be distributed to the public. 大概的意思就是:打开odcl的文件——在odcl里选择文件另存为——另存的文件以*.lsp做后缀——会得到一个lsp文件,文件的内容是个list表——在你原来的lisp文件中把(dcl_Project_Load "**")这句话替换为(setq project aaaa)及(dcl_project_import project nil nil)这两句,其中aaaa是刚才通过odcl文件得到的lsp文件内的那个表——保存,接下去就是把这个lisp文件按照普通的lisp文件编译就好了,不需要管对话框的那个文件了 非常感谢大侠们,这个问题也纠结了我好久
拜谢 启动Vlisp编译器 文件——〉生成应用程序——〉新建应用程序——〉生成应用程序
OK
VLX 生成
非常感谢 学习了
页:
[1]