PDA

View Full Version : Conditional Complile activation of ICImagingControl



Unregistered
September 13, 2002, 02:14:20
I have versions of my image processing software that work with several different frame grabbers and operating systems. For some combinations I do not need the ICImagingControl. I am a VB programmer and would like to be able to use a conditional compilation (#IF statement) to include the ICImagingControl for use on a form.

Or another way to say it is: how can I use a compile switch (#IF statement) to exclude the ICImagingControl when I'm running Windows NT? Assume that I have the flag that indicates NT, now what do I do to eliminate the control?


This message was originally posted by Brad Boyce in the old IC Imaging Control Support Forum.

Unregistered
September 13, 2002, 11:58:37
Hello Brad,

To load IC Imaging Control dynamically in a Visual Basic application, the Visual Basic's CreateObject method is used.

Private Sub Form_Load()
Dim IC As Object
' Now create the object
Set IC = CreateObject("IC.ICImagingControl")
End Sub

With this code, it is not necessary to insert IC Imaging Control in the form.

Best regards
Stefan
IC Support


This message was originally posted by Stefan in the old IC Imaging Control Support Forum.