I now want to encapsulate the unit of database operations, but want to encapsulate functional unit with three layers structure, the control transfer in assignment For example: the function GetDataList (DBGrid: TDBGrid; QryCon: Res_QryCondition; The out PageCount: Integer; PageNum: Integer) : String;
Now I will seal the functions into a DLL pointer errors, Excuse me what method can make the unit packaged into a DLL
thank you
CodePudding user response:
In the DLL encapsulated objects restrictions: 1) call DLL applications can only use the DLL object, the method of dynamic binding of 2) DLL encapsulation object instance can only be created in the DLL, 3) in the DLL and call DLL application need to encapsulate objects and the called method statement,
CodePudding user response:
1: you can encapsulate data source control, such as ADOQuery, don't wrap DBGrid in 2: return values do not use the string, use PChar