Error Cannot Load Resource File sqresus.dll

From: Andy Hallam <ahm_at_exel.co.uk>
Date: Sat, 21 Jul 2001 21:52:18 GMT
Message-ID: <9gak82$o9q$1_at_reader-00.news.insnet.cw.net>


Hello all.

OS=WINDOWS2000 [Quoted] Currenctly my C++ applications communicate with a SQL SERVER2000 DB through ODBC. [Quoted] [Quoted] I am now porting our applications to connect to an ORACLE DB.

I have a standalone APP that uses the following connection string through SQLDriverConnect() :-

    "DRIVER={Oracle ODBC Driver}; UID=System; PWD=Manager; DBQ=EFACS;" This works fine.

When I compile the connection code into a DLL and run my APP I get the "Error Cannot Load Resource File sqresus.dll", querying the ODBC errors collect using SQLGetDiagRec() I get the following :-

    "-160 : Specified driver could not be loaded due to system error 1114 (Oracle ODBC Driver)."

Looking at the OraOLEDB Readme file there is the following with reference to C++ :-

[Quoted]     Microsoft Visual C++ 6.0 Notes



[Quoted]     OraOLEDB.h must be included in the relevant .cpp files in the VC++     project. Also, #define DBINITCONSTANTS needs to be added to one of     the .cpp files in the project.

I have done this but I still get the same error.

Any help on this would be greatly received.

Andy Hallam
ahm_at_exel.co.uk Received on Sat Jul 21 2001 - 23:52:18 CEST

Original text of this message