TE Edit Control Win32 / Win64 Help
Product page

Recompile the DLL

If you need to modify the DLL source code and recompile within the Visual C++ environments, follow these steps to create a project:

Files: TER*.C, TER.DEF and TER.RC

Executable Type: Windows DLL

Alignment (Compiler Option): 1 Byte

Optimization: Minimum size

Remaining parameters should be left at their default values.

The 32 bit product should also include the imm32.lib as an additional linker library.

Using Borland C++ Builder

1. Create a new project (File->New) of type 'DLL' and name it ter32. This process would create a new file called ter32.cpp.

2. Select 'Project->Add To Project' option to add ter*.c (no cpp files), ter.def, and ter.rc files.

3. Select 'Project->Options' menu to set the 'Compiler' warning to none and Data Alignment (Advance Compiler options) to 'Byte'.

4. Select the Project->view to edit the main project file, ter32.cpp. This file contains the DllEntryPoint function. Modify this function to include a call to the TerInit function to initialize the DLL as following:

#include "ter.h"
int WINAPI DLLEntryPoint(HINSTANCE hinst, unsigned long reason,
void *)
{
return TerInit(hinst,reason);
}

5. Save the project as ter32. This step ensures that the resulting dll would be called ter32.dll. Now build the project. The build process will create ter32.dll and ter32.lib files.