Compilation error
-
Hi, I'm using the Express OLE DB Library[^], I have problem when try to build an application in Visual C++ .NET 2003: SypODLCommand.h(27): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLCommand.h(27): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordset.h(25): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLRecordset.h(25): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type How to fix this errors? Ivan Cachicatari Blog[^] www.latindevelopers.com
-
Hi, I'm using the Express OLE DB Library[^], I have problem when try to build an application in Visual C++ .NET 2003: SypODLCommand.h(27): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLCommand.h(27): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordBase.h(53): error C3200: 'int' : invalid template argument for template parameter 'TRowset', expected a class template SypODLRecordset.h(25): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type SypODLRecordset.h(25): error C3203: 'CRowset' : class template invalid as template argument for template parameter 'TRowset', expected a real type How to fix this errors? Ivan Cachicatari Blog[^] www.latindevelopers.com
need more information... are either CRowset or TRowset your classes ? are you using either of those classes anywhere? can we see the code where you're using them ? Cleek | Image Toolkits | Thumbnail maker
-
need more information... are either CRowset or TRowset your classes ? are you using either of those classes anywhere? can we see the code where you're using them ? Cleek | Image Toolkits | Thumbnail maker
The declaration is:
template <typename TAccessor, typename TRowset=CRowset> class CSypODLRecordBase : public CSypODLError { ... // error C3200: 'int' : invalid template argument for template // parameter 'TRowset', expected a class template : CAccessorRowset<TAccessor, TRowset> *m_pSet; ... }; // error C3203: 'CRowset' : class template invalid as template // argument for template parameter 'TRowset', expected a real type : class CSypODLCommand : public CSypODLRecordBase<CDynamicParameterAccessorEx> { .... };
My code;CSypODLConnection *tmpConn = NULL; try { USES_CONVERSION; tmpConn = new CSypODLConnection(); tmpConn->OpenFromInitializationString(T2OLE(path)); m_Conn = tmpConn; } catch(CSypODLException& e) { if(tmpConn != NULL) { if(tmpConn->IsOpen()) tmpConn->Close(); delete tmpConn; } e.DisplayError(); return false; }