View Full Version : Windows Forms and IC
October 15, 2008, 22:25:44
Is there a sample how to use Windows Forms instead of MFC with IC
October 16, 2008, 12:27:26
Yes. Many of them. Please have a look into the VB 7 and higher and C# Directories of the sample directory of your IC Imaging Control installation path. Please consider, the Windows Forms are not used with the IC Classlibary, but with the IC .NET control.
October 17, 2008, 12:51:44
I tried adding dll in c++ as described for c# but I get a lot of errors compiling. I will stick with Classlibrary at the moment. Thanks!
October 17, 2008, 13:10:05
Please use the IC Imaging Control .NET Control in C#. Please do not use the C++ classlibrary in C#.
January 7, 2009, 18:33:17
Is it possible to use the IC .NET Component in a C++ Application with Windows Forms? I think this what jakovn wanted to now an I would like to know it too.
January 8, 2009, 11:12:08
Good question, but yes, this should work. I never tried this, but there is no reason, why it should not be used in C++ Windows Forms.
January 10, 2009, 17:32:47
Well, this ist what the compiler says if I add the IC .NET Component to the Toolbox and drop a ICImagingControl into an empty form in VS2008:
Fehler 1 error C3699: "^": Diese Referenzierung kann nicht für den Typ "System::ComponentModel::Container" verwendet werden. c:\..\Form1.h 75
#pragma region Windows Form Designer generated code
TIS::Imaging::FrameHandlerSink^ frameHandlerSink1 = (gcnew TIS::Imaging::FrameHandlerSink());
this->icImagingControl1 = (gcnew TIS::Imaging::ICImagingControl()); //Line 75
In VS2003 it seems to work, but I get a System.Exception "IC Imaging Control is not licensed to be used on your computer!". How do I add the License?
January 12, 2009, 15:23:51
I found the same error as you. We removed the references to the 1.0 framework in VS 2005 and then the application could be compiled and executed.
Please click on your project, select "References". In the refrences list click on all double entries and have a look on their version (right side). Remove all of them, that do not have version 2 or higher.
January 13, 2009, 16:55:18
This works, thank you.
Powered by vBulletin® Version 4.2.3 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.