The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: orbb on May 30, 2008, 09:11:46 AM

Title: RichEdit in DlgTemplate
Post by: orbb on May 30, 2008, 09:11:46 AM
Hi , i m question : can`t create RichEdit control in Resource File , it`s not working after compilation ?
Title: Re: RichEdit in DlgTemplate
Post by: MichaelW on May 30, 2008, 03:51:06 PM
To use a Rich Edit control your app must first call LoadLibrary to load the appropriate DLL - RICHED32.DLL for version 1,  RICHED20.DLL for version 2 or 3, and I don't know the DLL names for the later versions. You could, or perhaps should, check the return value from the LoadLibary function to verify that the DLL was loaded.


Title: Re: RichEdit in DlgTemplate
Post by: PBrennick on May 30, 2008, 05:18:30 PM
We could help if we could see the code. Whether it is created in the resource file or in the assembly sources. As Michael said, there are some necessary steps, but it is not very difficult at all. Please read Iczelion's tutorials on the subject, also.

Paul
Title: Re: RichEdit in DlgTemplate
Post by: orbb on May 30, 2008, 05:30:11 PM
no no , i m using resource file for dlgtemplate . example is missing !
Title: Re: RichEdit in DlgTemplate
Post by: PBrennick on May 30, 2008, 05:47:16 PM
What example is missing? I have a huge library so if it is an example released into the public domain, chances are I have it and can post it here.

You realize we are only trying to help but your words are very confusing to me.
Paul
Title: Re: RichEdit in DlgTemplate
Post by: Vortex on May 30, 2008, 06:45:41 PM
orbb,

Here is for you a dialog box example created with resource template extracted from .res file.

[attachment deleted by admin]
Title: Re: RichEdit in DlgTemplate
Post by: orbb on May 30, 2008, 07:48:02 PM
of , sorry for my bad english , my application creates in resource file , for it i need richedit in resource file , if create richedit in resource file , application terminates with error . for example download TstDlg2

[attachment deleted by admin]
Title: Re: RichEdit in DlgTemplate
Post by: orbb on May 30, 2008, 08:01:40 PM
Here uploaded my application , i m working to replace Edit control with RichEdit . My application reserach (random find) secred key for 2 users for secret protected comunication ,and no need pass before  ACQUAINTANCE . New pass shooting by 2 random generators for 2 users he concurrence random numbers . This is a my idea before 3-4 years , and im start it realise. application is 90% created , need finish litle details for end.


[attachment deleted by admin]
Title: Re: RichEdit in DlgTemplate
Post by: ragdog on May 31, 2008, 06:31:46 AM
hi

i hope your mean this .
this is a small RichEdit  control example

greets

[attachment deleted by admin]
Title: Re: RichEdit in DlgTemplate
Post by: orbb on May 31, 2008, 09:38:58 AM
Thank you ragdog ,this is working !