]> git.saurik.com Git - wxWidgets.git/blame - docs/tech/tn0007.txt
my previous backwards compatible fix wasn't really very compatible
[wxWidgets.git] / docs / tech / tn0007.txt
CommitLineData
f6bcfd97
BP
1Using and modifying the BC++ IDE files
2======================================
3
b8ecf3e9 4Readme for wxWindows 2.0 Ide-files
33b64e6f 5First release Feb. 1999, detlev@reymann-online.de
b8ecf3e9 6
f6bcfd97 71. What you can do with the BC++ IDE files
b8ecf3e9
JS
82. Where to install the files
93. How to modify them for your own needs
c0bcc480 104. How to create IDE files for your own wxWindows-programs
b8ecf3e9 11
f6bcfd97
BP
121. What you can do with the IDE files
13=====================================
01dba85a 14
c0bcc480 15There are two IDE files. src\bc32.ide should help you to
2edb0bde 16create the wxWindows libraries from within the Ide of Borland's
01dba85a
JS
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.
b8ecf3e9
JS
21
222. Where to install the files
23=============================
01dba85a
JS
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).
b8ecf3e9
JS
33
343. How to modify them for your own needs
35========================================
01dba85a
JS
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
f6bcfd97 461. Choose Project->New target... and type in e.g.
01dba85a 47 samples\newsample. Press OK.
f6bcfd97 482. Static, no OWL, MFC or class libraries. Check Multithread
c0bcc480 49 on. Press OK.
f6bcfd97 503. Right-click on the new node, choose Add node... and add
c0bcc480
JS
51 ..\lib\wx32.lib and ..\lib\xpm.lib. Add any other source
52 files you require.
f6bcfd97 534. Right-click on the new node, choose Edit Local Options.. and
01dba85a
JS
54 add in Directories, specify the following:
55
56 Include: $inherit;.\newsample
57 Library: $inherit;
58 Source: .\newsample
59 Intermediate: .\newsample
60 Final: .\newsample
b8ecf3e9 61
c0bcc480 624. How to create IDE files for your own wxWindows-programs
b8ecf3e9 63==========================================================
01dba85a 64
f6bcfd97
BP
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