Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ADODC = Procedure declaration does not match description of event or procedure having the same name

272 views
Skip to first unread message

_NO_SPAM_

unread,
Jun 30, 1999, 3:00:00 AM6/30/99
to
Hi,

I am trying to enter code in the MoveComplete event of the ADODataControl
and I get an error compile on the declaration! Here is the error :

Compile error : Procedure declaration does not match description of event or
procedure having the same name

The problem I have is that I have let VB create the header...

I am using VB6.0 SP3 with MDAC 2.1 (the version that came with SP3) on a
Win95 machine. I have IE5 and I'm downloading DCOM95 to make sure that it
is installed.

If anyone has an idea, I would really appreciate!

Eric Demers
ede...@magma.ca

olivier.g...@lucasvarity.com

unread,
Jul 1, 1999, 3:00:00 AM7/1/99
to
Hi Eric,

MoveComplete event has the following declaration :

RS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError
As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As
ADODB.Recordset)


RS is the recordset you declare or the ado datacontrol.
For the recordset the delaration is like :

Dim WithEvents RS as ADODB.Recordset

Hope this will help you.

Olivier Guillaumin
Lucas Varity Diesel System
Blois (France)

In article <_Zxe3.4464$m4.15...@news.magma.ca>,


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

_NO_SPAM_

unread,
Jul 1, 1999, 3:00:00 AM7/1/99
to
Hi Olivier (Salut!)

That is my problem, I have the same declaration ( even Case Sensitive!!!),
however, I still get the error.

Thanks for the help.

Eric Demers
ede...@magma.ca

<olivier.g...@lucasvarity.com> a écrit dans le message :
7lfbmf$8su$1...@nnrp1.deja.com...

richs...@my-deja.com

unread,
Jul 14, 1999, 3:00:00 AM7/14/99
to
I had exact same problem.. in VB Project|References I deselect the
'Microsoft ActiveX Data Objects 2.1 Library' and then selected
'Microsoft ActiveX Data Objects 2.0 Library'. The error goes away...at
least I can keep going, dont know if I'll get burned later. Hope it
helps.....

In article <%HLe3.4487$m4.15...@news.magma.ca>,

_NO_SPAM_

unread,
Jul 16, 1999, 3:00:00 AM7/16/99
to
I found the problem, and it is a really annoying one... The problem I had
was that in the reference list, the 'Microsoft ActiveX Data Objects 2.1
Library' was not refering to the right DLL, it was refering to ADO 1.5 ...

I had created the project with a previous version of the ADO then "upgraded"
to version 2.1, added my ADODataControl component, and then it crashed.

I then created a new project with ADO 2.1 to see if I could replicate the
problem and the new project worked fine.

So I got into the .VBP file of the new project to see what was the
declaration, compared it to the one on my old one, and "Bingo!" the
declaration was not the same, even if the text associated with it was
identical.

So to fix that problem, create a new project with ADO 2.1 and change the
lines in your real .VBP file to fix the problem, and you'll be using 2.1
without any problems (I hope).

Eric Demers
ede...@cybertech-e.com

<richs...@my-deja.com> a écrit dans le message :
7mifnq$lpi$1...@nnrp1.deja.com...

0 new messages