Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining classes
Message
From
22/06/2004 14:24:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Defining classes
Miscellaneous
Thread ID:
00916150
Message ID:
00916150
Views:
36
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
Map
View

Click here to load this message in the networking platform