5c573e69 |
1 | MFC samples {#samples_mfc_standard} |
2 | ========== |
7fd59977 |
3 | |
f3fb84ce |
4 | 1. Contents |
5 | ----------------------- |
6 | |
7 | The directory <i> samples/mfc/standard </i> contains the following packages and files: |
8 | |
9 | * Numbered packages: **01_Geometry**, **02_Modeling**, etc. provide projects and sources of samples; |
10 | * Files **All-vc(number).sln** are auxiliary utility projects depending on all other sample |
11 | projects. When such project is rebuilt, all samples and *mfcsample* library are also rebuilt. |
12 | * **Common** directory provides common source and header files for samples and dynamic-link library *mfcsample.dll.* |
13 | * **Data** directory stores data files. |
14 | * **mfcsample** directory contains project for *mfcsample.dll* library providing basic functionality used by all OCC samples. |
15 | * File **env.bat** is called from *msvc.bat.* |
16 | |
17 | |
7fd59977 |
18 | 2. Launching Open CASCADE Technology samples: |
19 | --------------------------------- |
20 | |
f3fb84ce |
21 | To run the Open CASCADE Technology samples, use command: |
7fd59977 |
22 | |
f3fb84ce |
23 | ~~~~ |
693c4bbe |
24 | execute run.bat [vc10|vc11|vc12|vc14] [win32|win64] [Release|Debug] [SampleName] |
f3fb84ce |
25 | ~~~~ |
26 | |
27 | To run the **Animation** sample, use command: |
28 | |
29 | ~~~~ |
693c4bbe |
30 | execute run.bat vc10 win64 Debug Animation |
f3fb84ce |
31 | ~~~~ |
7fd59977 |
32 | |
7fd59977 |
33 | |
34 | 3. Modifying and rebuilding samples: |
35 | -------------------------------------------- |
36 | |
f3fb84ce |
37 | You can modify, compile and launch all sample projects in MS Visual C++ at once with command: |
38 | |
39 | ~~~~ |
693c4bbe |
40 | execute msvc.bat [vc10|vc11|vc12|vc14] [win32|win64] [Release|Debug] |
f3fb84ce |
41 | ~~~~ |
7fd59977 |
42 | |
f3fb84ce |
43 | To run all sample projects in MS Visual C++ at once, use command: |
7fd59977 |
44 | |
f3fb84ce |
45 | ~~~~ |
693c4bbe |
46 | execute msvc.bat vc10 win64 Debug |
f3fb84ce |
47 | ~~~~ |
7fd59977 |
48 | |
f3fb84ce |
49 | Note: make sure that your *PATH* environment variable contains a directory, where *msdev.exe* is located. |