Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 17:04

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: grideh in DLL
PostPosted: 07 Sep 2012, 05:00 
Offline

Joined: 06 Sep 2012, 18:40
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: grideh in DLL
PostPosted: 10 Sep 2012, 06:48 
Offline

Joined: 06 Sep 2012, 18:40
Posts: 2
Problem solved, thank you very much for the support.


Top
 Profile  
 
 Post subject: Re: grideh in DLL
PostPosted: 06 Aug 2013, 07:48 
Offline

Joined: 06 Aug 2013, 07:46
Posts: 1
The same error here. What is the solution for it? When I call Dll second time, this error appears.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group