Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare Visual Basic TYPE STATEMENT in Foxpro?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00469364
Message ID:
00469366
Vues:
13
>When looking into different API's, the syntax of writing codes are most often in Visual C or Visual Basic. One of my problems is how to understand how to write code in Foxpro where the parameter in the API function consists of more than one element. In Visual Basic there is the TYPE STATEMENT.
>For example:
>Private Type NETRESOURCE
> dwScope As Long
> dwType As Long
> dwDisplayType As Long
> dwUsage As Long
> lpLocalName As String
> lpRemoteName As String
> lpComment As String
> lpProvider As String
>End Type

There's no direct equivalent; you can use Christof Lange's STRUCT class, downloadable from the Files area, or use my ClsHeap class to provide external memory management for the APIs; if your main concern is the NETRESOURCE structure, you can download my NETRESOURCE class from the File Section here on UT as well (also get ClsHeap)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform