When i add a RichEdit to my dialog in RadASM dialog editor, and try to execute my dialog it dont work. the dialog dosent show up.
But when i delete that RichEdit it work, the dialog show up and it work just fine. :confused:
Posted on 2003-09-08 12:35:27 by bj1500
Did you call InitCommonCtrl or something like that? Can't really recall its exact api name.
Posted on 2003-09-08 12:54:18 by roticv
icc QWORD 3FFF00000008h
invoke InitCommonControlsEx,OFFSET icc
Posted on 2003-09-08 12:56:02 by donkey
Sorry still dosent work :confused:

i added this two lines
include \masm32\include\comctl32.inc
includelib \masm32\lib\comctl32.lib

and what does QWORD stand for?
Posted on 2003-09-08 13:24:07 by bj1500
Posted on 2003-09-08 13:28:32 by drarem
QWORD just means quad word or 2 dwords. It's becasue the structure that is used to initialize common controls is 8 bytes long, I just find it easier to do it this way. What is the error you get when your dialog exits.
Posted on 2003-09-08 13:30:03 by donkey
This may seem like an obvious question but you did include the rich edit library and load the DLL right ?

include riched20.inc
includelib riched20.lib

RichEditDLL db 'riched20.dll',0
hRichEdDLL dd 0

invoke InitCommonControlsEx,OFFSET icc
invoke LoadLibrary,offset RichEditDLL
mov hRichEdDLL,eax
Posted on 2003-09-08 13:46:04 by donkey
:( i'm new and dont know all this stuff who should be included.

thank you (again :tongue: )
Posted on 2003-09-08 14:07:13 by bj1500
I think the "includelib riched20.lib" line could be removed...
Posted on 2003-09-08 15:41:06 by QvasiModo
I just do this

nclude richedit.inc
includelib riched20

invoke CreateTextServices, 0, 0, 0

The CreateTextServices function should be presnt in all RichEdit versions.
This causes the system to load/unload it like it does for any other dll.
Posted on 2003-09-08 16:03:15 by gfalen