X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..1bfec677b1b7baf36ffcde190f456d2eea960239:/docs/tech/tn0004.htm
diff --git a/docs/tech/tn0004.htm b/docs/tech/tn0004.htm
index 59fd68658e..ea58c4fd56 100644
--- a/docs/tech/tn0004.htm
+++ b/docs/tech/tn0004.htm
@@ -15,10 +15,11 @@ This document is available online
@@ -56,18 +57,17 @@ To make the samples
Solution 1
-
-Download a zip file which contains modifed
-cpp, mak and bpr files - it will overwrite your wx distribution cpp files!
+Download a zip file which contains modified
+cpp, mak and bpr files - it will overwrite your wx distribution cpp files!
-
-Solution 2
-Creating the files by hand . This is for the calendar sample; you will
+
+Solution 2
+Creating the files by hand. This is for the calendar sample; you will
have to change the names for the other samples
-
Create a calendar.mak file [must have the same name as the cpp file] in
-a plain text editor with this contents
+a plain text editor with these contents:
#-----------------------------------------------------------------------------
#this is for Borland CBuilder IDE v1 and 3
@@ -112,8 +112,9 @@ jpeg.lib for image samples
-
- modify the .cpp file to include these
-lines near the top
+ modify the .cpp file to include
+these lines
+near the top
#ifdef __BIDE__
#define _NO_VCL
@@ -126,7 +127,7 @@ if you have more than one .cpp file
In CBuilder 1 you can use Open Project to open the mak file and
edit/compile/debug.
-
In CBuilder 3 and 4, then you can use Open Project and choose
+
In CBuilder 3 and 4, then you can use Open Project and choose
the Open Borland CBuilder 1 Project from the drop down file types. The
system will modify the mak file and update it for you.
Now try compiling it in the ide.
@@ -135,7 +136,7 @@ Hints:
-
-You can set it up for normal and debug modes (change the -v switch in CFLAG1
+You can set it up for normal and debug modes (change the -v switch in CFLAG1
and LFLAG)
-
@@ -144,12 +145,12 @@ a simple editor like notepad to the file minimal.mak (I have had problems
in CBuilder 1.00 with Unix style line endings)
-
-If you want to avoid the warnings about hiding virtual methods add -w-hid
-to the CFLAGS1 line
+If you want to avoid the warnings about hiding virtual methods add
+-w-hid to the CFLAG1 line
-
the #define WinMain WinMain line allows CBuilder to think it has a non-VCL
-main function
+main function
-
the USEUNIT macros tell CBuilder which other source files to include, without
@@ -168,35 +169,35 @@ Solution 3
-
-download the wxWindows-2.1.15-bcb.zip file,
+download the wxWindows-2.1.16-bcb.zip file,
-
extract it
-
-use the idetomak (CBuilder 1) or idetobpr
+use the idetomak (CBuilder 1) or idetobpr
(CBuilder 3/4) utility on the .ide file in the samples
-directory. This modifies the cpp source and makes a "suitable" bpr file
+directory. This modifies the cpp source and makes a "suitable" mak or bpr file
(at least in CBuilder 1/3/4).
-
-add the location of the wx/include files in the project | options
+add the location of the wx/include files in the project | options
| directory dialog
I found in CBuilder 1 that the idetomak utility did not manage
to convert all the samples, but idetobpr worked OK in CBuilder
-3 and 4. I have a report that not all the bpr files made inb CBuilder 4
+3 and 4. I have a report that not all the bpr files made in CBuilder 4
are correct
Error with ODBC32
-Sometimes you get an error saying that there are unreolved externals in
-ODBC. The soltuion is to run a command prompt in your wx\lib directory
-and use the implib command:
-C:\wx\lib>implib odbc32 c:\windows\system\odbc32.dll
+Sometimes you get an error saying that there are unresolved externals in
+ODBC. The solution is to run a command prompt in your wx\lib directory
+and use the implib command:
+
C:\wx\lib>implib odbc32 c:\windows\system\odbc32.dll
This creates the necessary library, odbc32.lib
Unresolved Problem
-In Borland CBuilder 1.00 (with linker service patch) I frequently
+In Borland CBuilder 1.00 (with linker service patch) I frequently
get an error
Turbo Incremental Link Version 1.0 Copyright (c) 1997 Borland
International
@@ -209,8 +210,7 @@ line 2060
Fatal: Access violation. Program terminated.
** error 2 ** deleting minimal.exe
I have not been able to track down why sometimes this error occurs and
-other times it is OK
-
I have not seen this in Cbuilder 3 or 4
+other times it is OK. I have not seen this in Cbuilder 3 or 4.
Page updated on 31 May 2000 by Chris Elliott