Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
will138322-Oct-02 4:35
will138322-Oct-02 4:35 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
Roger Allen22-Oct-02 5:36
Roger Allen22-Oct-02 5:36 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
Ravi Bhavnani22-Oct-02 7:18
professionalRavi Bhavnani22-Oct-02 7:18 
GeneralUnable to open HELP from Visual studio environment Pin
ssirisha22-Oct-02 3:54
ssirisha22-Oct-02 3:54 
GeneralRe: Unable to open HELP from Visual studio environment Pin
l a u r e n22-Oct-02 7:31
l a u r e n22-Oct-02 7:31 
GeneralRe: Unable to open HELP from Visual studio environment Pin
José Luis Sogorb23-Oct-02 7:16
José Luis Sogorb23-Oct-02 7:16 
GeneralCursor Change by an Out-of-Process COM Server Pin
Anonymous22-Oct-02 3:28
Anonymous22-Oct-02 3:28 
GeneralADO Binding (compile errors) Pin
esapp42022-Oct-02 3:23
esapp42022-Oct-02 3:23 
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
GeneralI am an IDIOT Pin
esapp42022-Oct-02 5:58
esapp42022-Oct-02 5:58 
GeneralRe: I am an IDIOT Pin
Nitron22-Oct-02 7:59
Nitron22-Oct-02 7:59 
GeneralsndPlaySound Pin
Jh322-Oct-02 3:11
Jh322-Oct-02 3:11 
QuestionHow to convert a string to XML format Pin
François22-Oct-02 3:01
François22-Oct-02 3:01 
AnswerRe: How to convert a string to XML format Pin
benjymous22-Oct-02 3:05
benjymous22-Oct-02 3:05 
AnswerRe: How to convert a string to XML format Pin
Daniel Turini22-Oct-02 3:15
Daniel Turini22-Oct-02 3:15 
AnswerRe: How to convert a string to XML format Pin
Stephane Rodriguez.22-Oct-02 3:21
Stephane Rodriguez.22-Oct-02 3:21 
GeneralVS make files Pin
will138322-Oct-02 2:58
will138322-Oct-02 2:58 
Generalstring Pin
wong190722-Oct-02 2:25
wong190722-Oct-02 2:25 
GeneralRe: string Pin
Nitron22-Oct-02 8:10
Nitron22-Oct-02 8:10 
GeneralRe: string Pin
valikac22-Oct-02 10:24
valikac22-Oct-02 10:24 
Generalsplash screen not disappearing on win98 Pin
ns22-Oct-02 2:19
ns22-Oct-02 2:19 
GeneralRe: splash screen not disappearing on win98 Pin
benjymous22-Oct-02 2:57
benjymous22-Oct-02 2:57 
GeneralRe: splash screen not disappearing on win98 Pin
ns22-Oct-02 3:36
ns22-Oct-02 3:36 
GeneralRe: splash screen not disappearing on win98 Pin
benjymous22-Oct-02 4:02
benjymous22-Oct-02 4:02 
GeneralRe: splash screen not disappearing on win98 Pin
ns22-Oct-02 4:16
ns22-Oct-02 4:16 
Questionany helpful links for this? Pin
ns22-Oct-02 2:12
ns22-Oct-02 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.