Andyhon 发表于 2010-7-3 16:41:00

<p><font style="BACKGROUND-COLOR: #ffffff" face="Verdana">试试先</font></p>
<p>command: (vl-load-com)</p>
<p>&nbsp;</p>
<p>For 2000+</p>

xjf 发表于 2022-11-27 11:34:44

(defun test()
(vl-load-com)
(setq wmi (vlax-create-object "WbemScripting.SWbemLocator"))
(setq meth1 (vlax-invoke-method wmi 'ConnectServer nil nil nil nil nil nil nil nil ))
(setq meth2 (vlax-invoke-method meth1 'ExecQuery "Select * from Win32_Processor" nil nil nil ))
(vlax-for n meth2
(print (vlax-get n 'name))
(print (vlax-get n 'ProcessorId))
)
(princ)
)

baitang36 发表于 2022-11-28 09:34:11

f224 发表于 2010-7-3 14:40
错误: no function definition: VLAX-CREATE-OBJECT
&nbsp;
提示以上的错误,,是不是要先加载什么的,请 ...

(vl-load-com)这个是必须的,对于vlax开头的函数
页: 1 [2]
查看完整版本: [求助]获得首枚CPU的序列号函数的问题