Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalthe Clear() function Pin
Eversman27-May-04 17:22
Eversman27-May-04 17:22 
GeneralRe: the Clear() function Pin
Anthony_Yio27-May-04 17:36
Anthony_Yio27-May-04 17:36 
GeneralRe: the Clear() function Pin
Frank K27-May-04 20:06
Frank K27-May-04 20:06 
GeneralRe: the Clear() function Pin
Eversman27-May-04 22:06
Eversman27-May-04 22:06 
GeneralRe: the Clear() function Pin
Frank K27-May-04 22:53
Frank K27-May-04 22:53 
GeneralRe: the Clear() function Pin
Naren Neelamegam28-May-04 20:16
Naren Neelamegam28-May-04 20:16 
GeneralPassing Variables Pin
picasso227-May-04 17:12
picasso227-May-04 17:12 
GeneralRe: Passing Variables Pin
Anthony_Yio27-May-04 17:21
Anthony_Yio27-May-04 17:21 
If you are using MFC.

You could store your password or other data to your CWinApp

And you could just call
((CYourApp*)AfxGetApp())->m_strPass ;


Or you could consider bad coding design but easier(my opinion)

global variable through

extern LPCTSTR g_YourPassword;


There are plenty of ways to do it. However, when you are storing sensitive data, you need to be more precautious in your design like consider encryption and etc.

Sonork 100.41263:Anthony_Yio

Life is about experiencing ...

GeneralDropping files Pin
Anonymous27-May-04 16:59
Anonymous27-May-04 16:59 
GeneralRe: Dropping files Pin
jmkhael28-May-04 1:02
jmkhael28-May-04 1:02 
Questionrenaming vcproj? Pin
bryce27-May-04 15:51
bryce27-May-04 15:51 
AnswerRe: renaming vcproj? Pin
Anthony_Yio27-May-04 16:08
Anthony_Yio27-May-04 16:08 
GeneralParallel port address auto detect Pin
jfk_lili27-May-04 15:50
jfk_lili27-May-04 15:50 
GeneralRe: Parallel port address auto detect Pin
Anthony_Yio27-May-04 18:16
Anthony_Yio27-May-04 18:16 
GeneralRe: Parallel port address auto detect Pin
jfk_lili27-May-04 22:47
jfk_lili27-May-04 22:47 
GeneralFILE IO Pin
demasoni.com27-May-04 14:42
demasoni.com27-May-04 14:42 
GeneralRe: FILE IO Pin
Anthony_Yio27-May-04 16:50
Anthony_Yio27-May-04 16:50 
GeneralRe: FILE IO Pin
demasoni.com27-May-04 19:21
demasoni.com27-May-04 19:21 
GeneralRe: FILE IO Pin
Anthony_Yio27-May-04 19:44
Anthony_Yio27-May-04 19:44 
GeneralRe: FILE IO Pin
demasoni.com28-May-04 11:57
demasoni.com28-May-04 11:57 
GeneralRe: FILE IO Pin
toxcct27-May-04 21:41
toxcct27-May-04 21:41 
GeneralRe: FILE IO Pin
markkuk27-May-04 22:59
markkuk27-May-04 22:59 
GeneralRe: FILE IO Pin
demasoni.com28-May-04 3:55
demasoni.com28-May-04 3:55 
GeneralRe: FILE IO Pin
markkuk28-May-04 12:19
markkuk28-May-04 12:19 
GeneralRe: FILE IO Pin
demasoni.com30-May-04 8:23
demasoni.com30-May-04 8:23 

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.