Installing the TMemoEx component
================================

1. Obtain the correct version of TMemoEx.
Basic4GL was built with v2.31. 
Most of the versions I find online are v2.2, so you can grab the correct one from:
http:\\www.basic4gl.net\MemoEx.zip

Unzip it somewhere meaningful.

2. From C++ Builder v6, File->Open, and open the MemoExCB5.bpk in the MemoEx\Source subdir.
It will say something about converting to v6.0. (Click OK)
Right click the package in the project list and choose "install".

It should compile, and install and add a "tmemoex.com" tab to the C++ Builder component palette.

It should also generate "MemoEx.hpp" for you (plus some other .hpp files)

3. Find and open MemoEx.hpp

Find the line:
	#include <RTLConsts.hpp>  // Pascal unit

And delete it.
(This line doesn't compile and isn't needed...)

Find the line:

		void __fastcall Mouse2Caret(const int X, const int Y, int &CX, int &CY);

and replace it with this:

	public:
		void __fastcall Mouse2Caret(const int X, const int Y, int &CX, int &CY);
	protected:

(This function must be accessible for Basic4GL to compile.)


3. Open the Basic4GL project.
Go Project->Options, Directories/Conditionals tab, then click the "..." next to Include path.

Make sure: "whatever your path is\MemoEx\Source" is in there somewhere.


That's it.