sql connect from MFC app RRS feed

  • Question

  • Hi,

    I'm sort of new to db acces from applications.



    I am trying to write a C++ application that accesses an ms-sql database.

    I have VS 2005 and .net 3.0 installed on a vista machine


    I created an MFC application and tried to import sample code:




    but SqlConnection is not recognized by the compiler and  requires System.Data.SqlClient.


    So how do I set up an application to compile as per said sample code?



    Tuesday, June 19, 2007 8:15 PM

All replies