|
<< Click to Display Table of Contents >> Project setup (Borland C/C++) |
![]() ![]()
|
Follow these steps when you begin to write a BDE application:
| 1. | Create a Win32 console project or makefile. MAIN.CPP File to contain your code IDAPI32.LIB BDE Import Library MAIN.DEF Module Definition file |
| 2. | For this simple application, set the target to be a console application. This way you don't have to deal with any Windows user interface issues. |
| 3. | Make certain to compile with "Allocate enums as ints" selected (In the Borland C++ 5 IDE, Options|Project|Compiler|Code Generation). A number of structures, such as CURProps, make use of Enumerations. This error generally manifests itself with stack corruption problems, such as GP faults when calling or returning from a function. |
| 4. | Within a module to contain BDE code, include the following header files: WINDOWS.H IDAPI.H |