Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WMI codes cannot run in Win Vista
Message
De
02/11/2008 00:54:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
WMI codes cannot run in Win Vista
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358939
Message ID:
01358939
Vues:
185
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform