If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > C++ and ADO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-30-04, 13:16
Tractor Tractor is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
C++ and ADO

Hello folks -

I have a little problem. I have a C++ service that was written using DAO. My manager wants it re-written using ADO. However, when I attempt to build, I get an error on the #import-ed dll for ADO (#import "c:\program files\common files\system\ado\msado26.tlb" no_namespace rename( "EOF", "A_EOF" )). It complains that Windows.h is included and that MFC apps can't include windows.h. However, there are many other classes that require it. Does anyone know of a way around this? IE someway to use ADO with some sort of workaround for the DLL or something to that effect? Any help would be appreciated.

-Tractor
Reply With Quote
  #2 (permalink)  
Old 08-03-04, 03:40
deviant69 deviant69 is offline
Registered User
 
Join Date: Jun 2004
Location: Deutschland
Posts: 10
i use ADO, and "finally" i dont have any more problems.
i found a class, ADO2, this class got everything u need, i think.
i attached the class and u can have a look at it.

if u need some more examples and help, check out:
HTML Code:
http://www.codeguru.com/Cpp/data/mfc_database/
deviant69
Attached Files
File Type: zip SourcCode.zip (11.4 KB, 73 views)

Last edited by deviant69; 08-03-04 at 04:00.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On