Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement