Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Error compiling OLEDB.h


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jan 23, 2017 8:32 PM Last Post By: Barry Andrews Threads: [ Previous | Next ]
Barry Andrews

Posts: 71
Registered: 9/19/03
Error compiling OLEDB.h  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 23, 2017 7:35 PM
I don't know if this is the correct place to ask this question but no other forum stands out as being suitable.

I am trying to use unidac SQLServerUniProvider.
However when I add this to my C++ builder project it includes OleDB.h and this file generates a whole bunch of E2257 , expected errors when compiling.

The errors relate to the definition of interfaces specifically the "typedef"

#ifndef __IAccessor_FWD_DEFINED__
#define __IAccessor_FWD_DEFINED__
typedef interface IAccessor IAccessor;

#endif /* __IAccessor_FWD_DEFINED__ */

I am assuming that another header file needs to be included or a setting changed on the compiler.
But I have no idea as to why the error is occurring and how to fix it.
Barry Andrews

Posts: 71
Registered: 9/19/03
Re: Error compiling OLEDB.h  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 23, 2017 8:32 PM   in response to: Barry Andrews in response to: Barry Andrews
Answering my own question.
I included "oledbdep.h" and the errors went away.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02