troubleshooting Question

DLL with TADOConnection passed in

Avatar of TheRealLoki
TheRealLokiFlag for New Zealand asked on
Delphi
12 Comments1 Solution663 ViewsLast Modified:
I need to create a DLL that talks to an MS SQL database
My calling app is multithreaded
  Each thread contians a TADOConnection
  and each thread needs to call the DLL and pass in the TADOConnection to the DLL
  along with some integer parameters
  potentially more that 1 thread will want to call the DLL at a time.

The DLL will then run a simple query, and return an integer.
If the DLL gets an SQL error, I need to get the error string back somehow.

Can someone give me a working example?

Delphi 5 or 7, MS SQL 2000/2005, Windows XP
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros