For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

OCC and Delphi

Thomas Scheel's picture
Forums: 

Is there an example for using occ with delphi?
There was nothing in the distribution or in this community...

greetz

Jonathan Hill's picture

Hi Thomas,

May I ask which version of Delphi you are using?

Thanks
Jonathan

Thomas Scheel's picture

Delphi 2006, any solution?

Jonathan Hill's picture

Hi Thomas

If your are developing using managed code then you may be able to use the .NET wrapper which you can download from: -
http://www.myxyz.co.uk/Downloads/Development/

(the path is case sensitive and it contains about 20Mb of files)

Its a simple Windows form hosting a OpenCASCADE window with a rotating sphere created on a thread.
(The debug folder also contains all the runtime .dll files, including the OpenCASCADE v6.1.0 runtime files)

The example is wriiten in C#, I haven't used Delphi for a few years now but let me know if you need any pointers.

I also have a COM wrapper which can be used for unmanaged code like Visual Basic etc. I can send you the COM .dll if you like.

Let me know if you have any comments or queries.

Jonathan

Thomas Scheel's picture

Hi Jonathan,

we develop Delphi for Win32, not .NET but the idea fo the COM wrapper sounds good. Can you send me the source of the wrapper and the compiled dll please?

Thomas

Jonathan Hill's picture

Hi

I have basic COM wrapper which you can download from:-

http://www.myxyz.co.uk/Downloads/Development/OCCComTest.zip

Let make know if you have any questions or queries.

Jonathan

Nick Alexander's picture

Hi Jonathan,

I came across this old thread with reference to COM objects for older Delphi versions. I am using Delphi 7 and am keen to look at OCC. Do you still have the code for the wrappers?

Regards,
Nick

Thorsten's picture

Hi All,
I am interested in using occ with delphi, too.
I am using delphi 2006 and looking for some documentation /examples.
Thanks and regards, Thorsten

Jonathan Hill's picture

Hi Thorsten

If your are developing using managed code then you may be able to use the .NET wrapper which you can download from: -
http://www.myxyz.co.uk/Downloads/Development/

(the path is case sensitive and it contains about 20Mb of files)

Its a simple Windows form hosting a OpenCASCADE window with a rotating sphere created on a thread.
(The debug folder also contains all the runtime .dll files, including the OpenCASCADE v6.1.0 runtime files)

The example is wriiten in C#, I haven't used Delphi for a few years now but let me know if you need any pointers.

I also have a COM wrapper which can be used for unmanaged code like Visual Basic etc. I can send you the COM .dll if you like.

Let me know if you have any comments or queries.

Jonathan

Hans van Moosel's picture

I have a Delphi 6 and I like to work also with the OCX is it posible to help me started?

Hans van Moosel's picture

I have a Delphi 6 and I like to work also with the OCX is it possible to help me started?

Jonathan Hill's picture

Hi

I have basic COM wrapper which you can download from:-

http://www.myxyz.co.uk/Downloads/Development/OCCComTest.zip

Let make know if you have any questions or queries.

Jonathan