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. ADO Binding (compile errors)

ADO Binding (compile errors)

Scheduled Pinned Locked Moved C / C++ / MFC
helpwpfwcf
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.
  • E Offline
    E Offline
    esapp420
    wrote on last edited by
    #1

    Hello, I have a strange problem with binding using the macro BEGIN_ADO_BINDING(CCustomRS). Here is my code:

    //SearchCustRS.h
    //
    //
    #define INITGUID
    #import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename_namespace("ADOCG") rename ("EOF", "EndOfFile")
    using namespace ADOCG;
    #include "icrsint.h"

    class CSeachCustRS : public CADORecordBinding
    {
    BEGIN_ADO_BINDING(CSearchCustRS)
    ADO_FIXED_LENGTH_ENTRY(1, adInteger, m_lCustomerID, lCustomerIDS, FALSE)
    ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, m_szCompName, sizeof(m_szCompName), lCompNameS, TRUE)
    ..
    ..
    END_ADO_BINDING()
    public:
    LONG m_lCustomerID;
    ULONG lCustomerIDS;
    CHAR m_szCompName[101];
    ULONG lCompNameS;
    ..
    ..
    };

    I am getting these errors: syntax: missing ';' before identifier 'ADORowClass' CSearchCustRS::ADORowClass: missing storage-class or type specifiers. The error line is the BEGIN_ADO_BINDING(CSearchCustRS). I have used this method successfully before, but now it will not compile... If anybody has any experience in this area suggestions would be appriciated! Thanks

    E 1 Reply Last reply
    0
    • E esapp420

      Hello, I have a strange problem with binding using the macro BEGIN_ADO_BINDING(CCustomRS). Here is my code:

      //SearchCustRS.h
      //
      //
      #define INITGUID
      #import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename_namespace("ADOCG") rename ("EOF", "EndOfFile")
      using namespace ADOCG;
      #include "icrsint.h"

      class CSeachCustRS : public CADORecordBinding
      {
      BEGIN_ADO_BINDING(CSearchCustRS)
      ADO_FIXED_LENGTH_ENTRY(1, adInteger, m_lCustomerID, lCustomerIDS, FALSE)
      ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, m_szCompName, sizeof(m_szCompName), lCompNameS, TRUE)
      ..
      ..
      END_ADO_BINDING()
      public:
      LONG m_lCustomerID;
      ULONG lCustomerIDS;
      CHAR m_szCompName[101];
      ULONG lCompNameS;
      ..
      ..
      };

      I am getting these errors: syntax: missing ';' before identifier 'ADORowClass' CSearchCustRS::ADORowClass: missing storage-class or type specifiers. The error line is the BEGIN_ADO_BINDING(CSearchCustRS). I have used this method successfully before, but now it will not compile... If anybody has any experience in this area suggestions would be appriciated! Thanks

      E Offline
      E Offline
      esapp420
      wrote on last edited by
      #2

      just a spelling error! 'seach' instead of 'search' gotta love that!

      N 1 Reply Last reply
      0
      • E esapp420

        just a spelling error! 'seach' instead of 'search' gotta love that!

        N Offline
        N Offline
        Nitron
        wrote on last edited by
        #3

        Look at the bright side! At least it only took you 2.5 hours to figure it out. :~ Nitron _________________________________________-- message sent on 100% recycled electrons.

        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