There is an executable file on my Windows machine which I want to protect from unauthorized access. To achieve this, I'd like to write a program/script in C++ that prompts the user for username/password when the exe file is double-clicked; the actual username/passwod is stored on a separate machine with PostgreSQL running. So I want my program to communicate in PHP with the Postgre database...
Now, the problem is that I don't have a clue how to 1) implement the window that asks for user/pass and 2) how to make the program communicate with the database.
Bearing in mind that I have some knowledge of PHP, Postgre, and C++, can somebody possibly offer a solution/code? Also if you think there's an easier way of approaching this, then please advise. Appreciations in advance.
P.S> By the way I haven't dealt with GUI's in C++.