MySQL Forums
Forum List  »  Delphi

Connecting to MySQL using a dll
Posted by: Trevor Chant
Date: July 21, 2007 11:57PM

Hi all
I have a application that is using MySQL written in Delphi 5 , I use MyDAC to connect to the DB , I have had to expand the app to have some rather large reports and graphics, I have put these in a Delphi DLL ,at present I have a datamodule in the DLL which reads the connection strings and then connect to MySQL, works fine. I found that if I put the mainform in the uses section of the dll I could access the TMyConnection of the calling application, which I thought would save a lot of mucking around with reading the connection strings etc.

My problem is that when I open a form and connect to the mainform.appdata (TMyConnection on the main form) I get an access Voilation error

Any suggestions or code snippets would be helpfull as I'm a little new to this
rgds to all

Options: ReplyQuote


Subject
Written By
Posted
Connecting to MySQL using a dll
July 21, 2007 11:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.