About header file

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.

shawn

h-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,

shawn