Database & SQL

Moderators: None (Apply to moderate this forum)
Number of threads: 1174
Number of posts: 2221

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Attention -ADO objects Posted by nakel on 7 Feb 2004 at 10:16 PM
I use visual C++ compiler.I had already registered the library of ADO to the system by running the cmd below:
c:\program files\common files\system\ado\RegSvr32 msado15.dll
and it told it has done it successfully.
But it's still complainin abt same problem

c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2146: syntax error : missing ';' before identifier 'm_pConnection'

c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers

c:\program files\microsoft visual studio\myprojects\schedule\adomfc1\adomfc1doc.h(23) : error C2501: 'm_pConnection' : missing storage-class or type specifiers

after declaring _ConnectionPtr m_pConnection;

Probably that's not the appropriate thing to do.How can I make the compiler to recognise the derived type _ConnectionPtr, cos it's obvious that's the problem.

Report
Re: Attention -ADO objects Posted by ocapic on 16 Aug 2004 at 1:11 AM
This message was edited by ocapic at 2004-8-16 1:31:28

Dear Nakle !
I'm Ocapic;
I have found one soloution at this address:

http://www.developerfusion.com/forums/topic-17274
summary of solution:
1) move
#import "C:\Program files\Common Files\System\Ado\msado15.dll" \
rename("EOF", "ADOEOF")

to the stdafx.h file (note that I've added a '\' at the end of the first line.

2) make sure #include "stdafx.h" appears before any #includes in your main file.


I hope your succeed.
Ocapic.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.