CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    396

    RichEdit control GDI32.DLL Violation?

    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?


  2. #2
    Join Date
    Nov 2007
    Posts
    5

    Angry Re: RichEdit control GDI32.DLL Violation?

    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?


    Code:
          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
    Last edited by crunchycoder; January 12th, 2008 at 08:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured