Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining classes
Message
De
22/06/2004 14:24:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Defining classes
Divers
Thread ID:
00916150
Message ID:
00916150
Vues:
35
I'm trying to use an dll that is designed for Visual Basic. I have no problem setting up the calls etc. But I have run into a problem defining variables in VFP 8.0 that seem to be common in VB.
For example, the dll is expecting these two variables:
Type TOCRPROCESSOPTIONS
StructId As Long
InvertWholePage As Boolean
DeskewOff As Boolean
Orientation As Byte
NoiseRemoveOff As Boolean
LineRemoveOff As Boolean
DeshadeOff As Boolean
InvertOff As Boolean
SectioningOn As Boolean
MergeBreakOff As Boolean
LineRejectOff As Boolean
CharacterRejectOff As Boolean
LexOff As Boolean
DisableCharacter(0 To 255) As Boolean
End Type ' TOCRPROCESSOPTIONS

Type TOCRJOBINFO
StructId As Long
JobType As Long
InputFile As String
PageNo As Long
ProcessOptions As TOCRPROCESSOPTIONS
End Type ' TOCRJOBINFO

I tried creating classes for these and then creating objects from the classes and passing those to the dll, but that doesn't seem to work. I have encountered this kind of thing a few times now and I don't know how to create variables like these in VFP. Can anyone help me?
Thank you,
- Tim.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform