Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems calling a Delphi7 DLL from a Delphi 5 app

Status
Not open for further replies.

garwain

Programmer
Joined
Jan 30, 2002
Messages
461
Location
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top