From: Marc K. <ma...@ke...> - 2002-10-22 10:30:45
|
----- Original Message ----- From: "Lorne Easton" <le...@bi...> > Hi All, > > This will be a simple one.. apologies. When attempting to use richedit.h, > and the RICHEDIT_CLASS, upon calling CreateWindowEx I get: > > 1407 Cannot find window class. ERROR_CANNOT_FIND_WND_CLASS > > This is probably because the richedxx.dll hasn't been loaded, but I can't > seem to see a library for it in the distribution. What do I need to tell the > linker so that it can do it's business? > > Regards, > Lorne You nee to load the richedit dll before you can use the class. LoadLibrary("RichEd20.dll"); This will load and register the richedit class. You've probably got about 3 richedit dlls to choose from, but you should load RichEd20.dll. This dll actually refers to versions 2 and 3. The name was kept for compatability. -- Marc. |