Click here to Skip to main content
Licence CPOL
First Posted 30 May 2005
Views 22,810
Bookmarked 8 times

ODBC (DSN & Drivers Finder)

By | 30 May 2005 | Article
ODBC (DSN & Drivers Finder) Code - Managed C++

Introduction

Dear guys,

        This class is a managed C++ class code, to help Managed C++ developpers loading all user and system DNS, and ODBC drivers.

        I am doing a big Cataloging Project which loads and stores pictures inside SQL plus Editing them, I will upload that project later.

        I have used Fact Pandit code and convert it from C# to C++. Thanks Fact Pandit.

        Three classes Exist in this project allowing you to get the DSN or Drivers. I have stored all the code in Header files, you can simply divide them into .h and .cpp files.

        1- ODBCDriver class: the name is significant, this class gets all the existing ODBC drivers.

        2- ODBCDSN class: gets the existing system or user DSNs

        3- ODBCMngr class: Class to Manage the first two classes, all your code should call the public functions there.

        The code is self explanatory and readable, i have commented some of it, sorry if it was not fully but i am inside a big project all in Managed C++ and i loved to share this part with you as soon as i will share the drawings and database part soon.

        With this code, you will learn a lot about Managed C++ Arrays and how work with them,you will get used to the registry classes also.

Enjoy!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

rabih_kai

Web Developer

Canada Canada

Member

I've been programming since year 1999, graduated from Univeristy Paris 2 France, major strengths include C# 2,3.5,4, ASP.NET MVC, AJAX,jQuery,javascript, LINQ, SQL Server 2008 R2, ADO.NET, WCF RIA Services. Sharepoint, Visual Studio 2005,2008 and 2010, Expression Blend 4 + Sketchflow, Telerik RadControl, Infragistics NetAdvantages for .Net and over six years of C++, Crystal Reports and SQL Server development experience. Through knowledge of object-oriented design, database design, MFC, ISAPI, TCP/IP networking and sockets' programming using the Microsoft Winsock API

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralDrivers programming in C# PinmemberShiv Rajput8:55 23 Jun '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 30 May 2005
Article Copyright 2005 by rabih_kai
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid