MySQL Forums
Forum List  »  Connector/C++

Cannot Load Library Error 126
Posted by: C Scruby
Date: September 12, 2011 06:35AM

Hi folks,

I've put together a DLL in Visual C++ which accesses a MySQL DB on my web server using the MySQL Connector C++ demo example on the site.

I've got the thing running on my development machine but I can't seem to port the code anywhere else.

I've copied the mysqlcppconn.dll and also the libmysql.dll files into the same folder as the dll on the target which is in line with the run time dependency verbage provided in the example.

I've loaded the Microsoft Data Access Components and copied the DLL files referred to above into my System32 folder for belt and braces. I even put the boot libraries on the target which was just out of desperation as I can't see why include files would be called at run time (I would of thought they were in the compiled version!)

I've spent hours trying to research run time dependency issues surrounding error 126 but there's very little which addresses the MySql/C++ connector specifically.

My calling app is Metatrader MT4 - the DLL is being called OK but is failing to load - thus error 126.

Any help would be very much appreciated.

Cheers
Crispin

Options: ReplyQuote


Subject
Views
Written By
Posted
Cannot Load Library Error 126
8204
September 12, 2011 06:35AM
2501
November 20, 2011 08: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.