Click to See Complete Forum and Search --> : RichEdit control GDI32.DLL Violation?


Todd Jeffreys
April 8th, 1999, 04:08 PM
Whenever i click in my RichEdit 2.0 control, i get a GDI32.DLL First chance exception, access violation. I call LoadLibrary("RICHED20.DLL") first as well. Anybody hear of this thing before?

crunchycoder
January 12th, 2008, 07:41 AM
i realise this thread is 9 years old lol...
but im having the exact same problem, everything was working fine untill i rebooted and now its throwing this exception when i click and/or highlight text with the mouse. sometimes it does it when i move the main window?



RichEditLibHinstance = LoadLibrary("Riched20.dll");
RichEdithWnd = CreateWindowEx(WS_EX_CLIENTEDGE, RICHEDIT_CLASS, "", WS_CHILDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_HSCROLL | WS_VSCROLL | ES_MULTILINE | ES_AUTOHSCROLL | ES_AUTOVSCROLL, 0, 0, 320, 240, hwnd, (HMENU)IDC_RICHEDIT, GetModuleHandle(NULL), NULL);



has anybody figured this thing out in the last 9 years? lol

thanks