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

About header file

Hui-Haisang Chang's picture

To whom may know: I am confused about 03_SampleGeometry that comes from Samples on MFC. I find there is usage on "Handle(ISession2D_Curve) aCurve = new ISession2D_Curve(C)". The "ISession2D_Direction" is same. I guess ISession2D_curve in Handle is Isession2D_Curve.h in the folder named inc Isession2D. Is it right? Therefore, using Handle(Issession2D_Curve) is same as Handle(Geom2d_Circle)-This is just comparision. Is it right? If it's right. Can I say that "#ifndef _ISession2D_Curve_HeaderFile" is followed by " #define _ISession2D_Curve_HeaderFile" are to make sure including ISession2D_Curve header file into our program? Thanks for your help.


Hui-Haisang Chang's picture

Sorry to everyone: There are differences between "ISession2D_curve" and "ISession_Direction". The "ISession_Direction" seems that doesn't have "#ifndef _ISession_Direction__HeaderFile" and "#define _ISession2D_Curve_HeaderFile". But, it has "DEFINE_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject)". Are they same? If not, why? Thanks a lot.

best regards,


Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.