My program runs just fine in the IDE, but when I try to make an exe, I get "Variable Not Defined" errors.
This is where the error first occurs, on fgmVidCap:
I have a User Control, which includes:
Both items start with Option Explicit.
I think this is possibly related to Early/Late Binding, but cannot figure out how to fix it!
Any help/suggestions will be welcome!
TIA.
Jim
This is where the error first occurs, on fgmVidCap:
Code:
Public Function StartCamera(ByVal CameraName As String) As Boolean
Dim AspectRatio As Double
If Not fgmVidCap Is Nothing Then
Error = 500
Exit Function
End If
Set fgmVidCap = New QuartzTypeLib.FilgraphManager
Error = BuildGraph(fgmVidCap, CameraName & FILTERLIST, CONNECTIONLIST) + 1
If Error >= 1 Then
Set fgmVidCap = Nothing
Exit Function
End If
Code:
Public fgmVidCap As QuartzTypeLib.FilgraphManager
Public fiVidCap As QuartzTypeLib.IFilterInfo
Public bv2VidCap As QuartzTypeLib.IBasicVideo2
Public vwVidCap As QuartzTypeLib.IVideoWindow
I think this is possibly related to Early/Late Binding, but cannot figure out how to fix it!
Any help/suggestions will be welcome!
TIA.
Jim