Hello,
I'm using XE2 with the windows7. I'm trying to replace my old dll which using dbgrid with the grideh, my old dll works fine, but when i'm replacing the dbgrid with grideh component, everytime I load the library for the second time, it always say 'Exception EStyleEngineException in module vcl160.bpl at 00116D34, class 'TScrollingStyleHook' is already registered for 'TCustomGridEH'.
the procedure to load and run the library is like :
procedure tform1.rundll; var fungeh : procedure(MyHandle : THandle); myhdl1 : Thandle; begin myhdl1 := LoadLibrary('ceh.dll'); if myhdl1 < hInstance_Error then begin Exit; end; @fungeh := GetProcAddress(myhdl1, 'cobaeh'); fungeh(application.Handle); if myhdl1 >= hInstance_Error then FreeLibrary(myhdl1); end;
What should I do to fix this problem.
Thank you
|