I do web programming, but now need to create a desktop application.
Basically, the application will sit on a USB memory stick. Upon insertion of the USB stick, I want a dialog box to pop up asking for a username and password.
Upon correct authentication, I then want a text file to open up. I don't want the text file accessible until the user has successfully authenticated.
What is the best way to accomplish this for Windows?
I don't mind learning a new programming language for this.
I do both procedural, and OOP.
Thanks.
Ever look at AUTORUN? http://www.google.com/search?hl=en&q=autorun+cd&btnG=Google+Search
And why not write the text file from your code?
Autorun is only part of the equation. I need to write a program that pops up a dialog box and allows me to authenticate the user. What programming language should I learn for such a task?
All the user has to do to circumvent your program: keep shift pressed when inserting the USB-stick to disable any automatic action. Then he can access all files on it. If you don't want that, you need to encrypt the file in some way and have your program unencrypt it after verification of the password.
As a programming language (assuming that it needs to be Windows only, not Linux or OS X) try Visual Basic Express. That's a free download from Microsoft.
Kees
I'll try VB Express, along with the encryption idea. As I mentioned in my post, I'm a web app programmer and have never created a desktop app before. That is why I needed advice on a simple language that I can learn to create such a desktop application.
The application will consist of two parts:
Part 1 will be installed on a computer. It'll present a series of forms for gathering information. That information is then saved to a USB stick.
Part 2 is what will run when the USB is inserted again into a computer, to show the data saved on it in part 1.
VB Express is simple enough that many never open a book or take a class. All your prior schooling should do fine here.
"I need to write a program that pops up a dialog box and allows me to authenticate the user. What programming language should I learn for such a task?"
I could do that in any language so far.
Bob
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |