Using Visual C++ environment with OCCT

Under Windows, you can use the Visual C++ environment to develop Open CASCADE Technology based applications. To do that you must first create a new project, configure its project settings, and then customize the Visual C++ options.

You will also find examples of Visual C++ projects if you download the Programming Examples based on MFC.

In the Visual C++ menu, select TOOLS/OPTIONS/Projects and Solution/VC++ Directories and set the path for OCCT include and libraries files.

Then select PROJECT/Properties/Configuration Properties/Linker/InputCategory and add the OCCT Object/library modules:

" TKernel.lib TKGeomBase.lib TKTopAlgo.lib TKOffset.lib TKBool.lib TKPrim.lib TKFillet.lib TKMath.lib TKService.lib TKV3d.lib TKBrep.lib TKIGES.lib PTKernel.lib TKSTL.lib TKVRML.lib TKSTEP.lib TKShapeSchema.lib TKG3d.lib TKG2d.lib TKXSBase.lib TKPShape.lib TKShHealing.lib TKBO.lib

Then select PROJECT/Properties/Configuration Properties/C/C++/Preprocessor  category: Code generation and select:

Use run-time library: Debug Multi-thread DLL or Multi-thread DLL depending on whether you are using debug libraries or no debug libraries.

  

Then select PROJECT/SETTINGS/C/C++ Category: Preprocessor and add _WINDOWS WNT in preprocessor definitions: