Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WMI codes cannot run in Win Vista
Message
 
À
02/11/2008 00:54:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358939
Message ID:
01358940
Vues:
39
>Hi all!
>I have codes that run very good in Win XP, However, they cannot run in Win Vista with error:
>
"The procedure entry point ?BreakOnDbgAndRenterLoop@@YGKXZ could not be located in dynamic link library wbemcomn.dll"
>Please help me to solve that problem.
>Thanks
>And these my codes:
>
LOCAL lcComputerName, loWMIService, loItems, loItem, lcMACAddress
>lcComputerName = "."
>loWMIService = GETOBJECT("winmgmts:\\" + lcComputerName + "\root\cimv2")
>loItems = loWMIService.ExecQuery("Select * from Win32_NetworkAdapter",,48)
>FOR EACH loItem IN loItems
>lcMACAddress = loItem.MACAddress
>IF !ISNULL(lcMACAddress)
>? "MAC Address: " + loItem.MACAddress
>ENDIF
>ENDFOR
Works for me. Here's the results of the code
MAC Address: 50:50:54:50:30:30
MAC Address: 33:50:6F:45:30:30
MAC Address: 00:1D:72:38:E4:6E
MAC Address: 00:17:C4:22:18:63
MAC Address: 54:F6:17:AA:AD:08
MAC Address: 20:41:53:59:4E:FF
MAC Address: 02:00:54:55:4E:01
MAC Address: 7A:80:20:00:02:00
MAC Address: 54:F6:17:AA:AD:08
MAC Address: 7A:80:20:00:02:00
MAC Address: 00:17:C4:22:18:63
MAC Address: 00:1D:72:38:E4:6E
MAC Address: 1E:78:20:52:41:53
MAC Address: 20:E6:20:52:41:53


It must be a rights issue.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform