I have a DLL developed in Delphi 7 that has a function which takes an ADO connection as a parameter, and return a tform object. Everything works great from the driver program that was developed in delphi7, but when I try to call the exported function from a program compiled in delphi 5, I get errors that the connection object is closed or not valid. I added a connection in the DLL to fix that, but I would prefer to have one connection object for the entire program.
The real problem right now is that when my exported function tries to return the tform object, I get an access violation error.
Anyone have any ideas on what I can do to be able to return a D7 tform to a D5 tform?
Thanks
The real problem right now is that when my exported function tries to return the tform object, I get an access violation error.
Anyone have any ideas on what I can do to be able to return a D7 tform to a D5 tform?
Thanks