General information
Category:
Coding, syntax & commands
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only