Visual Basic
Visual Basic
Types of Controls
More Complex Controls
Using C Code
H Write a DLL in C
H Use the _export Property on Appropriate Functions
H Write Visual Basic Definitions for each Function
H Add VB Definitions to The (general) section of the VB Program
H Use Functions as if they were VB functions
C Definition vs. VB Definition
C:
VB:
Function name Must Be The Same in Both Decalrations. The Lib keyword Must
Give The Name of the Library, Argument Name in VB is arbitrary.
Alternative Methods
Syntax Considerations
VB Statements
VB IF Statements
Example:
For 1 = 1 to 10 do
A[1] = A[1] + 1
Next 1
VB Arrays
VB Strings
H Variable Length
H Compare using standard comparators
H Maximum length is about 64Kb
H Minimum length is zero
H Allocated from VB “String Space”, so may run out of space even on
systems with much memory.