Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have one code in win32 include one dialog form that ask for "UserName" & "Password".
I using this code for create Form:
C++
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?
Regards,
Posted

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900