Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Deploying SQL drivers with an ActiveQt component

$
0
0
Hi. I have an ActiveQt component that makes use of the SQL plugin. The necessary DLLs are expected to be in <application>/sqldrivers. And this seems to be hardwired (for some unfathomable reasons). Since the ActiveX component is supposed to work in IE, I am obviously not able to deploy the DLLs to that place because the application directory would be the IE directory, which I can not write to (and which also would be a very bad idea). The only workaround I found for this so far is creating the sqldrivers dir somewhere else (where I’m actually allowed to write to) and set a path with QCoreApplication::addLibraryPath() Unfortunately, this works for me and my testing machines, but not for most of the customers. Not sure what’s the problem… does setting that path require admin rights? Not sure where to go from here. Isn’t there a way that would allow me to circumvent the “/sqldrivers” path requirement and just load the DLLs from the same place where my ActiveX DLL is located? System is Windows (obviously, as I try to run an ActiveX component in IE), IDE is Visual Studio 2010 (although that should not matter for the question) and Qt version is 4.8.4.

Viewing all articles
Browse latest Browse all 2113

Trending Articles