[vtkusers] VTK and C# in Visual Studio 2010
Eric E. Monson
emonson at cs.duke.edu
Mon Jun 27 13:21:21 EDT 2011
Hey Wisam,
(Please respond to the mailing list, too, so everyone can contribute and learn together.)
I've had problems with some of the examples that come with the ActiViz.NET wrappers crashing (like the Wikipedia browser), but most of them work fine for me.
There are some unresolved problems with using the 2D Charts API (vtkChartXY, etc) with the .NET wrappers though, related to interaction. Here's a short thread from February dealing with that issue:
http://vtk.1045678.n5.nabble.com/Activiz-and-vtkChartXY-td3397315.html
The example you linked to, though, is a C++ example rather than C#... If you're wanting to use C++ you just need "plain" VTK and CMake rather than the ActiViz.NET wrappers for C#/.NET.
The ActiViz.NET examples get installed in C:\Program Files\ActiViz.NET 5.6.1 OpenSource Edition\Examples (or similar path depending on whether you're using the 32 or 64-bit versions and which version of Windows). If everything installed properly you should be able to open the supplied C# VS solution files and build and run. To try other examples you'll have to translate them yourself to C#/.NET
Otherwise, you'll have to give us more details about what you're trying to do and what's going wrong so someone can try to help.
-Eric
On Jun 26, 2011, at 8:07 AM, Wisam Al-Rawi wrote:
> Hi Eric,
>
> That's excellent news! because I checked on ActiViz website and it did not mention clearly the compatibility with VS 2010. We don't need to write custom C++ or subclasses for now.
>
> My problem now is that I am using VS 2010 Express Edition and I installed ActiViz and linked it. It works fine but when I run it. The run program crashes even when I tried to run the examples. Do you know why?
>
> Thanks!
>
> Wisam
>
> On Fri, Jun 24, 2011 at 6:10 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hello Wisam,
>
> We use the ActiViz.NET C# wrappers with VS 2010 all the time, and it works well. It is an open source product now. The part that is limited to not work with VS 2010 is creating the wrappers yourself. So, if you can use the release binary versions for what you want to build, then there's no problem using VS 2010. (Hopefully a new VTK release will be coming soon, so the C# wrappers will get updated, also.) If you need to write custom C++ classes or subclasses to extend VTK, then part of the wrapping process is limited to VS 2008, but I think you can then still use those .dlls with building applications using VS 2010.
>
> Hope this clears things up a bit,
> -Eric
>
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
> Eric E Monson
> Duke Visualization Technology Group
>
>
> On Jun 24, 2011, at 4:59 PM, Wisam Al-Rawi wrote:
>
> > Hi,
> >
> > I am new here. We are trying to build a DICOM viewer in C# using latest .NET in Microsoft Visual Studio 2010. C# accelerated the development compared with C++. We thought of using VTK because it is open source and have advanced visualization module.
> >
> > As far as I know that VTK is C++ library. There is a product call ActiViz .NET which adds wrappers around the C++ components for VTK but it is not compatible with Visual Studio 2010. Has this been resolved? Any information will help us here.
> >
> > Thank you.
> >
> > Wisam
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110627/8ff8ebe2/attachment.htm>
More information about the vtkusers
mailing list