Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointers in VFP?
Message
De
05/10/2006 13:04:56
 
 
À
05/10/2006 06:07:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01158687
Message ID:
01159766
Vues:
21
>the value returned from SetupDiGetClassDevs is a HANDLE, just like a HWND (window handle).
>It's not an array, its just a single 32bit value you pass on plain to other functions.

Well, Tracy did that, just passed the handle on.

The MSDN help isn't exact about the HDEVINFO, although the H suggests it's a Handle, true.

Help on SetupDiGetClassDevs says it returns a handle to a device information set. Help on SetupDiEnumDeviceInterfaces says, the DeviceInfoSet parameter is a pointer to a device information set that contains the device interfaces for which to return information. And right after talking about a pointer it says: "This handle is typically returned by SetupDiGetClassDevs".

So the real problem was not setting up the lcInterfaceData Buffer, not that pointer/handle thing, if I got you right.

I know for foxpro numeric variables are all the same, but vfp help on Declare-DLL also makes this slight difference between LONG and INTEGER...

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform