>I am trying to use a DLL with VFP5, but the documentation for the DLL gives it examples for VB. A lot of the parameters are custom data types outside of the usual STRING, LONG, INTEGER used in DECLARE - DLL.
>
>A file is included which defines the custom parameter types using TYPE...END TYPE which in a VB app would go into global.bas
>
>Does anyone know if Visual FoxPro supports an alternative to TYPE...END TYPE???
>
>Thanks in anticipation
UDTs (structures) are not supported in VFP, but you can emulate them if you know how each field type is represented internally in the structure. Download Christof Lange's Structure class from the files section. It contains a Word document that tells you how to translate types, and comes with a great class that lets you define the fields in a structure, and creates the string for you.
Erik Moore
Clientelligence