I use visual C++ compiler.I had already registered the library of ADO to the system by running the cmd below:
c:\program files\common files\system\ado\RegSvr32 msado15.dll
and it told it has done it successfully.
But it's still complainin abt same problem
c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2146: syntax error : missing ';' before identifier 'm_pConnection'
c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2501: 'm_pConnection' : missing storage-class or type specifiers
after declaring _ConnectionPtr m_pConnection;
Probably that's not the appropriate thing to do.How can I make the compiler to recognise the derived type _ConnectionPtr, cos it's obvious that's the problem.