[Qt-interest] using an application's databse connection inside aDLL (on win32)
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Thu Mar 5 21:35:58 CET 2009
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Adolf Markus Berthold
> Sent: Thursday, March 05, 2009 10:17 AM
> To: Qt Interest
> Subject: [Qt-interest] using an application's databse connection
inside aDLL
> (on win32)
>
> Hi all !
>
> I asked about this before but got no answer. Since this is rather
> important for me, I kindly ask again.
>
> Is it possible for a function inside a DLL on win32 to access and use
a
> database connection,
> that was created in the main application, through the
QSqlDatabase::database()
> function ?
> And if this is not possible, can this DLL-function access this
connection if I
> pass on the
> corresponding QSqlDatabase object as parameter ?
>
> --
>
> Adolf Berthold
>
What have you tried? I have used a "setDatabase" function into a DLL and
it worked.. However, I have not tried to use the "global" database, but
I would guess it would work...
Have you tried it? What happened?
Scott
More information about the Qt-interest-old
mailing list