sfzyr 发表于 2021-7-5 00:46
http://club.excelhome.net/forum.php?mod=viewthread&tid=1403424&page=1&_dsign=c7707872,是不是这些 ...
方法一: 在64位系统中采用
(vlax-create-object "Aec32BitAppServer.AecScriptControl.1"))
替换
(vlax-create-object "ScriptControl")
方法二:
采用如下代码:
 - (setq wmi (vlax-create-object "WbemScripting.SWbemLocator"))
- (setq svr (vlax-invoke wmi 'ConnectServer))
- (setq net (vlax-invoke svr 'InstancesOf "Win32_NetworkAdapterConfiguration"))
- (vlax-for n net
- (if(/= (vlax-get n 'IPEnabled) 0)
- (princ (vlax-get n 'MacAddress))
- )
- )
|