VC++ 6.0, MSSQL Server 7.0, ADO >Sample< 
Author Message
 VC++ 6.0, MSSQL Server 7.0, ADO >Sample<

Has anybody a very small, very simple
Example to show me how it works in principle?

Thanx,

Berni



Sat, 13 Oct 2001 03:00:00 GMT  
 VC++ 6.0, MSSQL Server 7.0, ADO >Sample<
There are typically 2 ways...

1. #import the ado type library.
2. #include the sdk headers.

The first one allows you to use the C++ smart pointers and exception
handling.  This would make a good candidate for MFC applications.

The second one is basic interface pointers with no exception handling.  This
would be good for ATL components that need to be compact.

Really, you could use either option with MFC or ATL.  It may just be a
matter of skill and personal preference.  I decided to go down the #include
route because I do a lot of ATL programming.  Although it is server based
programming (where size is not such a big issue), I still can't break the
habit of lean-and-mean COM components.  ;-)

The knowledge base discusses how to set up ADO in VC++ for either option.
But I will tell you right know, even with help it took me quite a while to
figure it out.

Be sure to scan the knowledge base at MS and feel free to ask more
questions.

Quote:

>Has anybody a very small, very simple
>Example to show me how it works in principle?

>Thanx,

>Berni



Sun, 14 Oct 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. <<<<<<<Parsing help, please>>>>>>>>

2. VC++6 skips breakpoints with MSSQL 7.0 sp3

3. Sample VC++ 6.0 Code to implement ADO Events

4. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

5. <<<>>>Need C code advice with functions and sorting.<<<>>>

6. ADO VC++ COM server Sample Code?

7. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

8. vector<bool> problem with VC++ 6.0

9. VC 6.0 #import <olemsg32.dll> error

10. VC 6.0 #import <olemsg32.dll> error

11. Problem with <map> in VC++ 6.0

12. >>>Windows Service<<<

 

 
Powered by phpBB® Forum Software