HELP: error C2065 "ERROR" undeclared identifier

HELP: error C2065 "ERROR" undeclared identifier

Post by Rubber Duck » Sat, 04 Aug 2001 04:01:00



I have a program which uses both ado and adox, all works fine except I get
this error:

error C2065: 'adModelUnknown' : undeclared identifier

It points to this line in my code:

hr = m_pConnection->Open(_bstr_t(L"Provider=Microsoft.Jet.OLEDB.3.51; Data
Source=c:\new.txt"),_bstr_t(L""), _bstr_t(L""), adModelUnknown);

Does anyone know how to solve this?  Here are my declarations

#import "c:\Program Files\Common Files\system\ado\msado15.dll"
rename_namespace("ADO")
#import "c:\Program Files\Common Files\system\ado\msadox.dll"
rename_namespace("ADOX")

using namespace ADO;
using namespace ADOX;

--
Thanks
* Ducky

Please reply to group or to email
To reply to email remove NOSPAM

 
 
 

1. "Invalid Attribute/ Option Identifier" Error

Hi, When trying to register a new SQL Server connection
using SQL Server 2000 Enterprise Manager, I get this
error: "Invalid Attribute/Option Identifier".

What puzzles me is that I can access that same SQL Server
using Query Analyzer, and perform all my functions.

Any idea what could be causing this?

Thanks,

Carlos  

2. TJA wat is dat nou ??????????????

3. Extended stored procedure compilation error, ODS_VERSION : undeclared identifier.

4. Sunnyvale, CA - 3 Oracle Developers with Developer/Designer 2000 experience needed IMMEDIATELY!!

5. DELL SAN Solution on WNT 4.0 and W2K

6. export errors

7. HELP "Run-time error 432" HELP

8. Error 80004005 "General network error"

9. Remote Connection Error "General Network Error"?

10. DTS error ("catastrophic error")