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. user login

user login

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasehelp
4 Posts 3 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.
  • A Offline
    A Offline
    aleyah
    wrote on last edited by
    #1

    hello; i new in Visual C++, so i need some help to how do compare user input (ID and password) with data in my database file. and now i use Ms Access as my database file... please help me... thanks

    N 1 Reply Last reply
    0
    • A aleyah

      hello; i new in Visual C++, so i need some help to how do compare user input (ID and password) with data in my database file. and now i use Ms Access as my database file... please help me... thanks

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      use a SELECT query to retrieve the username and password. Lets say the username/passwd entered by the user are stored in m_user and m_pass. Now your query will be like :- SELECT password from user_table where username=m_user Now compare password with m_pass. If they are same log him in, else over-write the first 25 sectors of his first partition :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

      S A 2 Replies Last reply
      0
      • N Nish Nishant

        use a SELECT query to retrieve the username and password. Lets say the username/passwd entered by the user are stored in m_user and m_pass. Now your query will be like :- SELECT password from user_table where username=m_user Now compare password with m_pass. If they are same log him in, else over-write the first 25 sectors of his first partition :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

        S Offline
        S Offline
        Simon Walton
        wrote on last edited by
        #3

        Nish [BusterBoy] wrote: If they are same log him in, else over-write the first 25 sectors of his first partition lol :-D Simon Nobody does chicken like MFC Sonork ID 100.10024

        1 Reply Last reply
        0
        • N Nish Nishant

          use a SELECT query to retrieve the username and password. Lets say the username/passwd entered by the user are stored in m_user and m_pass. Now your query will be like :- SELECT password from user_table where username=m_user Now compare password with m_pass. If they are same log him in, else over-write the first 25 sectors of his first partition :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

          A Offline
          A Offline
          aleyah
          wrote on last edited by
          #4

          but how to write in visual c++ code???

          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