Click here to Skip to main content
15,888,139 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Significance of MFC/.NET [modified] Pin
_AnsHUMAN_ 4-Jun-06 19:28
_AnsHUMAN_ 4-Jun-06 19:28 
GeneralRe: Significance of MFC/.NET [modified] Pin
Tara144-Jun-06 22:05
Tara144-Jun-06 22:05 
GeneralRe: Significance of MFC/.NET [modified] Pin
_AnsHUMAN_ 4-Jun-06 22:12
_AnsHUMAN_ 4-Jun-06 22:12 
GeneralRe: Significance of MFC/.NET [modified] Pin
Tara144-Jun-06 22:16
Tara144-Jun-06 22:16 
QuestionHelp Needed! Pin
fury 844-Jun-06 17:00
fury 844-Jun-06 17:00 
AnswerRe: Help Needed! [modified] Pin
bob169724-Jun-06 17:21
bob169724-Jun-06 17:21 
AnswerRe: Help Needed! Pin
Christian Graus4-Jun-06 18:05
protectorChristian Graus4-Jun-06 18:05 
AnswerRe: Help Needed! Pin
ThatsAlok4-Jun-06 18:48
ThatsAlok4-Jun-06 18:48 
fury 84 wrote:
I am working on a win32 program that requires users to create user names with passwords and log in. I assume that I need to create a file with user information and then read from it when the user tries to log in but have no idea how to go about doing so. Any help would be much appreciated. Thanks.

 Simplest Way to do so, is by using INI files! i.e. INI file is based on section, key and data, though it provide absolute security to your application, but for beginner level it will be easy go

 try to create you INI structure some thing like this
 [USERS]
  // based on number of user there will be USERn section (n is no of user)
 noofuser=2 
  
 [USER1]
 username=alok
 password=alok
 [USER2]
 username=fury
 password=fury

using this structure you can easily add user to your Application, without modifying application. here is list of ini wrapper class
http://www.codeproject.com/cpp/CIni.asp[^]


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
GeneralRe: Help Needed! Pin
Tara145-Jun-06 1:44
Tara145-Jun-06 1:44 
GeneralRe: Help Needed! Pin
ThatsAlok5-Jun-06 1:48
ThatsAlok5-Jun-06 1:48 
GeneralRe: Help Needed! Pin
Tara145-Jun-06 1:55
Tara145-Jun-06 1:55 
GeneralRe: Help Needed! Pin
ThatsAlok5-Jun-06 1:58
ThatsAlok5-Jun-06 1:58 
GeneralRe: Help Needed! Pin
Tara145-Jun-06 2:05
Tara145-Jun-06 2:05 
QuestionHandle exit Pin
DanYELL4-Jun-06 10:14
DanYELL4-Jun-06 10:14 
AnswerRe: Handle exit [modified] Pin
Stephen Hewitt4-Jun-06 13:57
Stephen Hewitt4-Jun-06 13:57 
AnswerRe: Handle exit Pin
Michael Dunn4-Jun-06 16:26
sitebuilderMichael Dunn4-Jun-06 16:26 
AnswerRe: Handle exit Pin
Nibu babu thomas4-Jun-06 17:35
Nibu babu thomas4-Jun-06 17:35 
GeneralRe: Handle exit Pin
FarPointer4-Jun-06 20:49
FarPointer4-Jun-06 20:49 
QuestionMinimize application from taskbar Pin
Junyor4-Jun-06 8:20
Junyor4-Jun-06 8:20 
AnswerRe: Minimize application from taskbar Pin
Nibu babu thomas4-Jun-06 17:37
Nibu babu thomas4-Jun-06 17:37 
GeneralRe: Minimize application from taskbar Pin
helpcode4-Jun-06 23:51
helpcode4-Jun-06 23:51 
QuestionRe: Minimize application from taskbar Pin
NianHawk17-Jun-06 5:08
NianHawk17-Jun-06 5:08 
AnswerRe: print a bitmap Pin
Hamid_RT4-Jun-06 7:12
Hamid_RT4-Jun-06 7:12 
QuestionHow to lock taskbar in my program Pin
NianHawk4-Jun-06 3:08
NianHawk4-Jun-06 3:08 
AnswerRe: How to lock taskbar in my program Pin
Nibu babu thomas4-Jun-06 18:13
Nibu babu thomas4-Jun-06 18:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.