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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do the dll share the database connection in host exe?

Status
Not open for further replies.

IPOz

Programmer
Jul 11, 2001
109
CN
hi,friends
I want to share the BDE database connection .but i donot know how to do it? Now i use a separate TDatabase both in exe and dll :(

any suggestion is appreciated ! ipo_z@cmmail.com
garbage in,garbage out
 
Pass the TDatabase handle through to the DLL. From memory you assign it to the Handle of another TDatabase in the DLL.

See HandleShared property. I can't remember whether this mattered or not now <g>.

Good luck
VW
 
thank you ! i will test it later !


regards! ipo_z@cmmail.com
garbage in,garbage out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top