]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/tech/tn0007.txt
corrected CodeWarrior project target names and generated application names
[wxWidgets.git] / docs / tech / tn0007.txt
... / ...
CommitLineData
1Using and modifying the BC++ IDE files
2======================================
3
4Readme for wxWindows 2.0 Ide-files
5First release Feb. 1999, detlev@reymann-online.de
6
71. What you can do with the BC++ IDE files
82. Where to install the files
93. How to modify them for your own needs
104. How to create IDE files for your own wxWindows-programs
11
121. What you can do with the IDE files
13=====================================
14
15There are two IDE files. src\bc32.ide should help you to
16create the wxWindows libraries from within the Ide of Borlands
17C++, v. 5.x. Note that this doesn't include debugging code: you
18need to change the settings if you wish to include debug
19information. Previously, bc32d.ide was supplied with debug
20settings, but this proved to time-consuming to maintain.
21
222. Where to install the files
23=============================
24
25You should copy the files for the libraries into the
26src-directory of your wxWindows-Installation (e.g. C:\wxwin\src).
27And the other file for the samples should be copied into the
28samples-directory (e.g. C:\wxwin\samples).
29
30(If installing from setup.exe or wx2..._bc.zip the files
31will be installed into the appropriate directories
32automatically).
33
343. How to modify them for your own needs
35========================================
36
37If your wxWindows-Installation resides on the same drive as your
38Borland-Compiler and additionally the Borland-Installation is
39the default (e.g. C:\BC5) then there should be no need to change
40anything. Otherwise please change the path from within the ide
41(Options->project->directories). Because we use the
42$inherit-macro (Julian found the trick), this should work.
43
44To add a new sample to samples\bc32.ide, follow these steps:
45
461. Choose Project->New target... and type in e.g.
47 samples\newsample. Press OK.
482. Static, no OWL, MFC or class libraries. Check Multithread
49 on. Press OK.
503. Right-click on the new node, choose Add node... and add
51 ..\lib\wx32.lib and ..\lib\xpm.lib. Add any other source
52 files you require.
534. Right-click on the new node, choose Edit Local Options.. and
54 add in Directories, specify the following:
55
56 Include: $inherit;.\newsample
57 Library: $inherit;
58 Source: .\newsample
59 Intermediate: .\newsample
60 Final: .\newsample
61
624. How to create IDE files for your own wxWindows-programs
63==========================================================
64
65If you want to create an IDE file for your own wxWindows program,
66please follow these steps.
67
681. Create a new project from the menu file->new->project.
692. Deactivate all the standard-options, the only three things
70 that should be activated are "static" for the libraries,
71 the checkbox OLE (you can leave this checkbox unchecked,
72 but then you have to add the library \bc5\lib\ole2w32.lib
73 to your project), and the Multithread checkbox.
743. Add the include-path of wxWindows to the include-path in the
75 options-dialog (options->project->directories->include). The
76 result should be something like:
77 path_of_my_program;\bc5\include;\wxwin2\include;
784. Add the libraries to the project. Open the project-view and
79 activate your program. Then right-click and choose "add" and
80 select the wxWindows library (e.g. \wxwin\lib\wx32.lib). Also
81 add the xpm library.
82