Does OCC5.2 or OCC5.0 support the Microsoft Visual C#.net?

Please someone can tell me?
Thank's

Stephane Routelous's picture

as OCC is implemented in C++, you have to wrap the OpenCASCADE code to be able to use it under C#
you can check the sample in samples\standard\c#

Stephane
http://www.exotk.org

John Chou's picture

Thank's for your reply.
Because I want to use MS.NET to compile OCC5.2,but I don't know how to start it?
What should I learn? VC++7.0 or C#?

anassisi's picture

Hello John,
Learn C++ first then you will find c# a walk in a park.
Good luck.
Andrea

vio's picture

Hm, once you are comfortable in c++, is there a good reason to add another layer between your code and occ? It will just slow down your code. c# is Microsoft's flavor of java (more or less). Since java/c#'s interpreted nature makes it no speed daemon to begin with, and since c# seems to lack java's "write once, run anywhere" (MS-centric), what's the motivation for a c# wrapper? Because something "can" be done doesn't mean it should.
Regards,
Vio

Jonathan Hill's picture

Hi,

I have a set of C# wrapper class (but not using P/Invoke) which would allow to load in IGES or STEP file and add shapes etc. in .NET using VS 2005.

Jonathan