Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compilation error

Compilation error

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasecomcsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ivan Cachicatari
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • I Ivan Cachicatari

      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

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      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

      I 1 Reply Last reply
      0
      • C Chris Losinger

        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

        I Offline
        I Offline
        Ivan Cachicatari
        wrote on last edited by
        #3

        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; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups