Click to See Complete Forum and Search --> : Compile errors in MS ADO ICRSINT.H


GarroteYou
March 21st, 2003, 03:47 PM
Hello,

I'm building a simple ADO program from a book as part of my studies. I'm using MS VC++ 6.0. Everything should be in place, however when I try to compile it doesn't like line 19 in "icrsint.h".

Error: c:\program files\microsoft visual studio\vc98\include\icrsint.h(19) : error C2144: syntax error : missing ';' before type 'CADORecordBinding'

The line is simply:

class CADORecordBinding;

There are only 4 lines before this declaration:

//--------------------------------------------------------------------

#ifndef _ICRSINT_H_
#define _ICRSINT_H_

#include <olectl.h>
#include <stddef.h>

class CADORecordBinding;

I did create a Custom record set class which derives from CADORecordBinding, might this have something to do with the problem?

Why has MS placed the CADORecordBinding class declaration at the top of "icrsint.h", then the macro defines, then the CADORecordBinding definition towards the bottom?

If I play around with the structure of "icrsint.h", will I goof up other MS ADO libraries elsewhere in the system?

Thanks for any help you can offer.

~Dave