OCC and Delphi

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 H'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

RusMikle's picture

Hi Jonathan,

I am also interested in using OCC with Delphi (10.4 ...).
The links to COM at the top is no longer available.
(http://www.myxyz.co.uk/Downloads/Development/OCCComTest.zip - Error 404
http://www.myxyz.co.uk/Downloads/Development/ - Error 404)
May I ask you to provide an example again?
Has there been anything new for Delphi over the years?
Thank you and regards
Mikhail