有人可以确认我无法在 exe 和用 Delphi 编写的 dll 之间交换包含 TobjectList 的指针吗?
Class definition shared between DLL and EXE
TCMStack = CLASS(TObject)
PRIVATE
FEquipment: TCMEquipment; /// equipement with associated constraints
FNbCoils: integer; /// coils used
FListeCoils: TCoilsList; ///coil list associaed with a stack
....
在可执行代码中:
...
/// Transfer business information to optimisation module
/// fOptimisation is a instance of class
fOptimisation.TransfererDonneesMetiersDansOptimisation(@TStack, LEVEL_OPTIM_1, false);
除了 TobjectList 之外,@TStack 的内容都很好