Click here to Skip to main content
12,359,751 members (63,495 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++
Hi,
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?
Regards,
Posted 22-Jan-13 5:10am
Rezame1K

1 solution

Rate this: bad
 
good
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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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