Pelles C forum

Pelles C => Bug reports => Topic started by: John Z on October 24, 2025, 04:02:41 PM

Title: Bug using RTF1 or RTF2 control
Post by: John Z on October 24, 2025, 04:02:41 PM
Spent days trying to figure out why one of my dialogs would not appear when called.  It kept giving a 1421 "Control ID not found." error, but everything was defined and tested ok in the dialog editor.

In any case it comes down to adding either of the RTF controls to the dialog window. 
Attached is a simple Hello_World project.  Initially it has no RTF control, runs just fine.

Open the project and just drag one of the rtf controls onto the dialog, save everything and rebuild the program. 
On MY system the dialog/program no longer works, corrupted somehow. 
Go back and remove the rtf control rebuild again and everything is fine.

Help verifying that it is not just on my system will be appreciated....

John Z
Title: Re: Bug using RTF1 or RTF2 control
Post by: TimoVJL on October 25, 2025, 11:27:32 AM
Interesting problem.
Remember to load richedit dll too.

I add richedit 2.0 control t tiny Dlg example and it works.

Title: Re: Bug using RTF1 or RTF2 control
Post by: John Z on October 25, 2025, 11:42:31 AM
Thanks very much Timo!

My oversight - works now.  I won't forget again after spending so much time -

Appreciate the assist!

John Z