Click here to Skip to main content
13,589,795 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have one code in win32 include one dialog form that ask for "UserName" & "Password".
I using this code for create Form:
HWND hDlg = CreateDialogParamA(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG1 ), hWnd, DialogFunc, 0);

Each time user want login must write Username & password.
I want know possible change code to save login UserName in "UserName" field and no need user add that every time?
Posted 22-Jan-13 5:10am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Just save the data somewhere when the user presses OK and restore it next time you show the dialog. You could use the registry, a database or local file for saving permanently.
Marius Bancila 23-Jan-13 2:55am
But make sure you store the password encrypted, not in plain text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03-2016 | 2.8.180618.1 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100