Home > Back-end >  DLL use dbgrideh cause a runtime error 216?
DLL use dbgrideh cause a runtime error 216?

Time:09-22

Want to deal with other programs in the DLL dbgrideh data, there is a problem, processing rz series control is not the problem, however,

CodePudding user response:

DLL is a independent area of memory, it can't read DBGridEh values, only through parameter, the incoming data,
Rz controls is the VCL control that it can share the inner, thus it can be read DBGridEh values,

CodePudding user response:

reference 1st floor lyhoo163 response:
DLL is independent area of memory, it can't read DBGridEh values, only through a parameter, the incoming data,
Rz controls is the VCL control that it can share the inner, thus it can be read the value of the DBGridEh

Aren't DBGridEh is also the VCL control, this problem I also met before, haven't find a solution to the above brother didn't see clear the meaning of the original poster said, he is said to read the other application data across processes, the inside of the same program RZ series is not an error, DBGridEh form is abnormal

CodePudding user response:

DLL is a independent area of memory, it can't be Shared memory in the main program, thus it:
(1) cannot read DBGridEh values in the main program, only through a parameter, the incoming data,
(2) the Dll if take Form and DBGridEh, DBGridEh need to bring their own connection control, read the data set,
Rz controls, (3) the building should be the main program of VCL control that it can read DBGridEh values,

CodePudding user response:

refer to the second floor XSTDLJJ response:
Quote: refer to 1st floor lyhoo163 response:

DLL is a independent area of memory, it can't read DBGridEh values, only through parameter, the incoming data,
Rz controls is the VCL control that it can share the inner, thus it can be read the value of the DBGridEh

Aren't DBGridEh is also the VCL control, this problem I also met before, haven't find a solution to the above brother didn't see clear the meaning of the original poster said, he is said to read the other application data across processes, the inside of the same program RZ series is not an error, is DBGridEh form abnormal

Well is that I put in the use of dbgrideh commented out, everything is normal,
And after an execution, the target program crash, I am alone and made a DLL, use the dbgrideh inside, and it only creates a dbgrideh object but everything is normal,,

CodePudding user response:

1. Control version are consistent
2. Call the process with the up and down a try,
CoInitialize (nil);
CoUninitialize;

CodePudding user response:

reference 5 floor jjpweb reply:
1. Control version are consistent
2. Call the process with the up and down a try,
CoInitialize (nil);
CoUninitialize;

The target program I use dbgrideh version I don't know, another activex initialization code and the seemingly don't work

CodePudding user response:

Hope someone give some guidance, is really don't understand,

CodePudding user response:

DBGridEh Dll is independent memory, do not used to the way of incoming data set can use parameters,

CodePudding user response:

refer to the eighth floor lyhoo163 response:
Dll is independent memory, do not use DBGridEh, to use the way of incoming data set parameters can,

Dbgrideh data obtained other programs now I here refer to the online operation dbgrid thinking totally there are two kinds of methods are summarized, a wh_callwndproc hook function conversion twincontrol into control types in the object, make a mistake, the other is a inside wm_getmessage processing function transformation twincontrol but operating the dataset has been successful, the next experiment can circulate use,

CodePudding user response:

refer to the eighth floor lyhoo163 response:
Dll is independent memory, do not use DBGridEh, to use the way of incoming data set parameters can,

However this is not the key point, the key problem is that the second method inside even quoted dbgrideh error, error in reference alone and no this problem, the first feel the problem involves the metaphysics,

CodePudding user response:

references to the tenth floor youyo8701 response:
Quote: refer to the eighth floor lyhoo163 response:
Dll is independent memory, do not use DBGridEh, to use the way of incoming data set parameters can,

However this is not the key point, the key problem is that the second method inside even quoted dbgrideh error, error in reference alone and no this problem, the first feel the problem involves the metaphysics,

Is a very strange question, before I also hurt a lot of brains on this issue, finally ignore, waiting for the results of the study of the building Lord

CodePudding user response:

11 references, iron eggs response:
Quote: reference to the tenth floor youyo8701 response:

Quote: refer to the eighth floor lyhoo163 response:
Dll is independent memory, do not use DBGridEh, to use the way of incoming data set parameters can,

However this is not the key point, the key problem is that the second method inside even quoted dbgrideh error, error in reference alone and no this problem, the first feel the problem involves the metaphysics,

Is a very strange question, before I also hurt a lot of brains on this issue, finally ignore, waiting for the results of the study of the building Lord

Rewrite it again, perhaps,

CodePudding user response:

refer to 12 floor youyo8701 reply:
Quote: 11 references, iron eggs response:
Quote: reference to the tenth floor youyo8701 response:

Quote: refer to the eighth floor lyhoo163 response:
Dll is independent memory, do not use DBGridEh, to use the way of incoming data set parameters can,

However this is not the key point, the key problem is that the second method inside even quoted dbgrideh error, error in reference alone and no this problem, the first feel the problem involves the metaphysics,

Is a very strange question, before I also hurt a lot of brains on this issue, finally ignore, waiting for the results of the study of the building Lord

Rewriting might be well again,,

Or DLL change my name,
  • Related