

Note that all batch scripts use the configuration defined in OCCT custom.bat file as default you can provide arguments specifying VS version, bitness, and mode to override these settings, e.g.: > msvc. Run run_winforms.bat or run_wpf.bat to launch the corresponding sample. Note that project files are provided only for VS 2010, you can open them in newer versions of Visual Studio the using automatic converter.Īfter conversion check option Target framework in the properties of C# projects (tab Application) to make sure that it corresponds to the version set in the properties of C++ projects (e.g.Net Framework 4.0 for VS 2010). Run msvc.bat to start MS Visual Studio for building the sample.

That approach would allow using all WPF features to control the OCCT viewer. Other possible solution could be to render OpenGl scene in an off-screen buffer and to map it to WPF control as an image. Simply set your user control library to be your startup project and execute it (F5).

