Forum > RichMemo

Error using RichMemo in existing application

(1/2) > >>

uwe:
Hi folks,

I have the following problem using the TRichMemo component. I have downloaded and installed the package yesterday and it works fine (I had to include the patch for Lazarus 0.9.30.2 because a function parameter of a function was added). So after doing that I installed the package and created a new project with Lazarus to check it out. It all worked fine so far, the TRichMemo did exactly what I wanted it to.

Then I converted an existing project from Delphi, which worked, too. I can compile the program and run it.
Now If I place a new TRichMemo component on one of the forms of the converted Delphi-project I get the following Linker error during the compilation process:
"Error: Undefined symbol: WSRegisterCustomRichMemo". What I do not understand is why does it work with a new from-scratch application but not with my converted Delphi application? The error remains even if I delete the file from the form again. It only disappears if I also remove RichMemo from the uses clause.

Any ideas?

Thanks for your help.

Uwe

JuhaManninen:

--- Quote from: uwe on December 16, 2011, 12:06:38 pm ---I have the following problem using the TRichMemo component. I have downloaded and installed the package yesterday and it works fine (I had to include the patch for Lazarus 0.9.30.2 because a function parameter of a function was added).

--- End quote ---

So the TRichMemo version is actually for Lazarus 0.9.31 ?


--- Quote ---Then I converted an existing project from Delphi, which worked, too. I can compile the program and run it.
Now If I place a new TRichMemo component on one of the forms of the converted Delphi-project I get the following Linker error during the compilation process:
"Error: Undefined symbol: WSRegisterCustomRichMemo". What I do not understand is why does it work with a new from-scratch application but not with my converted Delphi application? The error remains even if I delete the file from the form again. It only disappears if I also remove RichMemo from the uses clause.

--- End quote ---

I don't know what causes the problem. Check the "Required packages" in Project Inspector.
Also check the Paths in Project Options -> Compiler Options.

Juha

felipemdc:

--- Quote from: uwe on December 16, 2011, 12:06:38 pm ---Any ideas?

--- End quote ---

Does your Delphi application have the Interfaces unit in the uses clause and the LCL package as a dependency?

uwe:
Hello together,
The "required packages"-node in the project inspector shows the following packages:
- Richmemopackage
-ZVDateTimeCtrl
-LCL

The beginning of the interface section of my converted Delphi application looks like that:
unit MainFrm;

//{$MODE Delphi}
//{$MODE FPC}

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, InfoForm,
  Dialogs, StdCtrls, ComCtrls, FileCtrl, Menus, Util, Variants, ShellApi,
  ExtCtrls, SearchUnit, ToolWin, Buttons,    FormMerge, FormSearch,
  DateUtils, Utils, ConfigFrm, Vars, SearchKeywordQueryForm, GoToLineForm,
  UnitLanguages, IniFiles, FunctionsUnit, Interfaces;
                                                           
As soon as I add RichMemo to the uses clause the following error occurs during linking:
"Error: Undefined symbol: WSRegsiterCustomRichMemo".

Thanks again

Uwe

Leledumbo:
The main program file (.lpr / .dpr) must have Interfaces unit in the uses clause

Navigation

[0] Message Index

[#] Next page

Go to full version