Skip to main content

Login Menu using C++ GUI



Hello Guys,



                                  CREATING LOGIN FORM USING C++



This is bit long procedure so i would like to post only Video .

Thank you


Login Form C++ --->









  

Comments

  1. My form is not building. It shows building error after writing the code you have written. Though I have included fstream as my header file, it is not recognizing "ifstream" and "getline".
    These are my header files:
    #include
    #include
    #include
    #include
    This is my code:
    //lets create a funtion

    String^ userRAW = textBox1->Text;
    String^ passwordRAW = textBox2->Text;

    //Now we will convert

    String user = msclr::interop::marshal_as(userRAW);
    String password = msclr::interop::marshal_as(passwordRAW);

    // Now we will check the info with the files if they are corect or not..//

    ifstream readuser;
    ifstream readpass;

    readuser.open(user + ".txt");
    readpass.open(user + "pass.txt");

    String getpass;
    getline(readpass, getpass);

    if (getpass == password && readuser.is_open())
    {
    MessageBox::Show("Access Granted!\nAccount opened!");
    }
    if (getpass != password && readuser.fail())
    {
    MessageBox::Show("Access Denied!\n");
    }
    The dialogue box shows:
    There were build errors. Would you like to run the last successful build?

    What should I do now?

    ReplyDelete
  2. These are my header files as it did not appear in the last comment:
    iostream
    fstream
    string
    msclr/marshal_cppstd.h

    ReplyDelete

Post a Comment

Popular posts from this blog

Introduction to C++ Form Programming Using Visual Studio (GUI)

Welcome to C++ Form Programming using Visual Studio 13 1. Open  Visual Studio 13. 2. Go to File->New->Project. 3. Go to Visual C++ and choose CLR Empty Project. 4. After this go to : 5. Go to Visual C++ -> UI -> Select Windows Form. Will Look like this -> 6. Now Right click on Project<your project number> ( mine is Project6 so i will select Project6) and select properties and do same as me. 7. Go to Linker and under this select System and then select SubSystem from menu and click bottom-faced arrow and select the same as below.  8. Now, select Advanced, An Entry point row will come in menu and type "main" (without quotes). 9. Click Apply and Ok. 10. Now select your .cpp file from solution explorer in the right. in my case its "MyForm.cpp" 11.Then type this code in your cpp file. #include "MyForm.h" using namespace System; using namespace System::Windows::Forms...

BODMAS / PEDMAS calculator

Parenthetical Calculator/ BODMAS Calculator/ PEDMAS Calculator             that works according to the bracket priority.                                     Simple Algorithm. Made with using 3 modules :-                                                                         1. Expression separation 2. Post fixing Algorithm 3. Expression Evaluation Written in C++ Language Output :-- Source Code : -- #include <iostream> #include <sstream> #include <cmath> #include <string.h> using namespace std; void tellpos (string a , int &a_ )  { if (a == "+" || a == "-") { a_ = 10; ...