Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need vital help about MFC - ADO.Net (SQL connection)

Need vital help about MFC - ADO.Net (SQL connection)

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++databasetutorialhelp
22 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T TheGreatAndPowerfulOz

    Message content removed. Irrelevant.

    If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
    You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

    S Offline
    S Offline
    symeramon
    wrote on last edited by
    #9

    So, this is you ha? Thats it??? :D:D:D

    1 Reply Last reply
    0
    • S symeramon

      Hi there all, I am totaly new to MFC! I have just found a job that I have been dreaming for... But my boss is asking for an C++/MFC(Dialog) sample that connects to SQL and fill the combobox by the data taken from database (Northwind for example)... I know how to do that in C# part but really I have no idea how in C++. Please can somebody help me???

      C++ MFC ado ado.net sql connection

      S Offline
      S Offline
      Software_Developer
      wrote on last edited by
      #10

      This one is in c#. hence c# code is not all that different from c++ code, just convert.. Populate data from database in a ComboBox (c#) http://www.codeproject.com/KB/database/comboboxhtmlpage.aspx

      S 1 Reply Last reply
      0
      • S symeramon

        Hi there all, I am totaly new to MFC! I have just found a job that I have been dreaming for... But my boss is asking for an C++/MFC(Dialog) sample that connects to SQL and fill the combobox by the data taken from database (Northwind for example)... I know how to do that in C# part but really I have no idea how in C++. Please can somebody help me???

        C++ MFC ado ado.net sql connection

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #11

        Even if you do get a sample, and convince the guy to give you a job, you will fail in it very soon because you know nothing about C++ and MFC. And dont hnink because you know C# you can pick up C++. You are going to be in a world of pain if you take this job. And you are going to damage your reputation when the boss relises what a dishonest liar you are and sacks you. Get a job that matches your skills. Or learn new skills.

        ============================== Nothing to say.

        S D 3 Replies Last reply
        0
        • L Lost User

          Even if you do get a sample, and convince the guy to give you a job, you will fail in it very soon because you know nothing about C++ and MFC. And dont hnink because you know C# you can pick up C++. You are going to be in a world of pain if you take this job. And you are going to damage your reputation when the boss relises what a dishonest liar you are and sacks you. Get a job that matches your skills. Or learn new skills.

          ============================== Nothing to say.

          S Offline
          S Offline
          symeramon
          wrote on last edited by
          #12

          My boss knows everything and I have a little knowledge about C++ , also I have 6 applications in business that I've created... Plus, in the job interview I said to my boss that I have no knowledge about mfc but he said ok cause he is not like "some" others (He believed me)... PLEASE STOP CALLING ME LIAR!!! I just wanted a little help!!! WHAT KIND OF PEOPLE YOU ARE???!!!!!!!!!!! You are liars while you resist to remember your past (I mean your first years in business???) You born with laptops???!!

          L S 2 Replies Last reply
          0
          • L Lost User

            Even if you do get a sample, and convince the guy to give you a job, you will fail in it very soon because you know nothing about C++ and MFC. And dont hnink because you know C# you can pick up C++. You are going to be in a world of pain if you take this job. And you are going to damage your reputation when the boss relises what a dishonest liar you are and sacks you. Get a job that matches your skills. Or learn new skills.

            ============================== Nothing to say.

            S Offline
            S Offline
            symeramon
            wrote on last edited by
            #13

            Get a job that matches your skills. Or learn new skills.

            By the way, GOOD MORNING!!! That is what I am trying to...

            1 Reply Last reply
            0
            • S Software_Developer

              This one is in c#. hence c# code is not all that different from c++ code, just convert.. Populate data from database in a ComboBox (c#) http://www.codeproject.com/KB/database/comboboxhtmlpage.aspx

              S Offline
              S Offline
              symeramon
              wrote on last edited by
              #14

              Thanks, you are so kind...

              1 Reply Last reply
              0
              • S symeramon

                My boss knows everything and I have a little knowledge about C++ , also I have 6 applications in business that I've created... Plus, in the job interview I said to my boss that I have no knowledge about mfc but he said ok cause he is not like "some" others (He believed me)... PLEASE STOP CALLING ME LIAR!!! I just wanted a little help!!! WHAT KIND OF PEOPLE YOU ARE???!!!!!!!!!!! You are liars while you resist to remember your past (I mean your first years in business???) You born with laptops???!!

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #15

                Right, so if your boss is happy to let you learn on the job then sit down at a computer with Visual Studio installed, and the MSDN, and go through the MFC tutorials. You will learn all about creating apps, adding controls, manipulating data and so on.

                ============================== Nothing to say.

                1 Reply Last reply
                0
                • S symeramon

                  Hi there all, I am totaly new to MFC! I have just found a job that I have been dreaming for... But my boss is asking for an C++/MFC(Dialog) sample that connects to SQL and fill the combobox by the data taken from database (Northwind for example)... I know how to do that in C# part but really I have no idea how in C++. Please can somebody help me???

                  C++ MFC ado ado.net sql connection

                  S Offline
                  S Offline
                  Snorri Kristjansson
                  wrote on last edited by
                  #16

                  Hi, I'm assuming you are going to use ADO (not ADO.NET). I have some experience in developing apps that use MS SQL DB, ADO and MFC in C++ (since 2002). Sorry to say I don't have a code sample I can give you but you might take a look at this: A set of ADO classes - version 2.20[^]. I have not used that code myself but it looks like it will take care of connecting to the SQL DB and getting data from it.

                  S 1 Reply Last reply
                  0
                  • S symeramon

                    My boss knows everything and I have a little knowledge about C++ , also I have 6 applications in business that I've created... Plus, in the job interview I said to my boss that I have no knowledge about mfc but he said ok cause he is not like "some" others (He believed me)... PLEASE STOP CALLING ME LIAR!!! I just wanted a little help!!! WHAT KIND OF PEOPLE YOU ARE???!!!!!!!!!!! You are liars while you resist to remember your past (I mean your first years in business???) You born with laptops???!!

                    S Offline
                    S Offline
                    Snorri Kristjansson
                    wrote on last edited by
                    #17

                    Try to ignore those A-holes. With 8M+ members quite a few are "less than perfect". I think you are very brave to enter the harsh world of C++, MFC and ADO - coming from your C# background. I wish you well.

                    S 1 Reply Last reply
                    0
                    • S Snorri Kristjansson

                      Hi, I'm assuming you are going to use ADO (not ADO.NET). I have some experience in developing apps that use MS SQL DB, ADO and MFC in C++ (since 2002). Sorry to say I don't have a code sample I can give you but you might take a look at this: A set of ADO classes - version 2.20[^]. I have not used that code myself but it looks like it will take care of connecting to the SQL DB and getting data from it.

                      S Offline
                      S Offline
                      symeramon
                      wrote on last edited by
                      #18

                      You are just great... Thanks! :)

                      1 Reply Last reply
                      0
                      • S Snorri Kristjansson

                        Try to ignore those A-holes. With 8M+ members quite a few are "less than perfect". I think you are very brave to enter the harsh world of C++, MFC and ADO - coming from your C# background. I wish you well.

                        S Offline
                        S Offline
                        symeramon
                        wrote on last edited by
                        #19

                        Thank you so much for your nice wishes and kindness... Best wishes to you too... :)

                        1 Reply Last reply
                        0
                        • T TheGreatAndPowerfulOz

                          Message content removed. Irrelevant.

                          If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
                          You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

                          D Offline
                          D Offline
                          David Crow
                          wrote on last edited by
                          #20

                          ahmed zahmed wrote:

                          ...you spineless snake.

                          Two posts in and you've already resorted to name-calling. Amazing. :(

                          "One man's wage rise is another man's price increase." - Harold Wilson

                          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                          "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                          1 Reply Last reply
                          0
                          • L Lost User

                            Even if you do get a sample, and convince the guy to give you a job, you will fail in it very soon because you know nothing about C++ and MFC. And dont hnink because you know C# you can pick up C++. You are going to be in a world of pain if you take this job. And you are going to damage your reputation when the boss relises what a dishonest liar you are and sacks you. Get a job that matches your skills. Or learn new skills.

                            ============================== Nothing to say.

                            D Offline
                            D Offline
                            David Crow
                            wrote on last edited by
                            #21

                            Erudite__Eric wrote:

                            ...what a dishonest liar you are...

                            How do you know he lied? My very first job out of college I got because I had experience with Pascal on a Unix platform. Shortly after I was hired, my first assignment was a C program on a DOS platform.

                            "One man's wage rise is another man's price increase." - Harold Wilson

                            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                            "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                            S 1 Reply Last reply
                            0
                            • D David Crow

                              Erudite__Eric wrote:

                              ...what a dishonest liar you are...

                              How do you know he lied? My very first job out of college I got because I had experience with Pascal on a Unix platform. Shortly after I was hired, my first assignment was a C program on a DOS platform.

                              "One man's wage rise is another man's price increase." - Harold Wilson

                              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                              "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                              S Offline
                              S Offline
                              symeramon
                              wrote on last edited by
                              #22

                              Thank you very much David...

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups