Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat does "Keyframe" mean? Pin
godbird.vista27-Nov-07 3:22
godbird.vista27-Nov-07 3:22 
AnswerRe: What does "Keyframe" mean? Pin
Mark Salsbery27-Nov-07 6:54
Mark Salsbery27-Nov-07 6:54 
QuestionHow to get a variable name? Pin
Hadi Dayvary27-Nov-07 3:17
professionalHadi Dayvary27-Nov-07 3:17 
AnswerRe: How to get a variable name? Pin
David Crow27-Nov-07 3:22
David Crow27-Nov-07 3:22 
GeneralRe: How to get a variable name? Pin
Nelek27-Nov-07 3:24
protectorNelek27-Nov-07 3:24 
GeneralRe: How to get a variable name? Pin
Hamid_RT27-Nov-07 23:35
Hamid_RT27-Nov-07 23:35 
GeneralRe: How to get a variable name? Pin
Nelek28-Nov-07 3:09
protectorNelek28-Nov-07 3:09 
GeneralRe: How to get a variable name? Pin
Hadi Dayvary27-Nov-07 3:37
professionalHadi Dayvary27-Nov-07 3:37 
DavidCrow wrote:
Closing your eyes and saying "Abracadabra" will sometimes work. Other than that, you'll need to rephrase your question.


I found the macro :
#define NAME(VAR) ( CString(#VAR) )

and then you can use it for getting any variable name at runtime:
CString s = NAME(m_sName);

If you don't know something it does not mean that it's not exist!
QuestionRe: How to get a variable name? Pin
CPallini27-Nov-07 3:49
mveCPallini27-Nov-07 3:49 
GeneralRe: How to get a variable name? Pin
toxcct27-Nov-07 4:13
toxcct27-Nov-07 4:13 
GeneralRe: How to get a variable name? Pin
Maximilien27-Nov-07 5:38
Maximilien27-Nov-07 5:38 
GeneralRe: How to get a variable name? Pin
CPallini27-Nov-07 6:07
mveCPallini27-Nov-07 6:07 
GeneralRe: How to get a variable name? Pin
Luc Pattyn27-Nov-07 6:50
sitebuilderLuc Pattyn27-Nov-07 6:50 
GeneralRe: How to get a variable name? Pin
CPallini27-Nov-07 7:08
mveCPallini27-Nov-07 7:08 
GeneralRe: How to get a variable name? Pin
Hamid_RT27-Nov-07 23:34
Hamid_RT27-Nov-07 23:34 
GeneralRe: How to get a variable name? Pin
toxcct27-Nov-07 23:36
toxcct27-Nov-07 23:36 
AnswerRe: How to get a variable name? Pin
CPallini27-Nov-07 3:33
mveCPallini27-Nov-07 3:33 
JokeRe: How to get a variable name? Pin
Hamid_RT27-Nov-07 18:41
Hamid_RT27-Nov-07 18:41 
GeneralSure! Pin
CPallini27-Nov-07 21:08
mveCPallini27-Nov-07 21:08 
GeneralRe: Sure! Pin
Hamid_RT27-Nov-07 21:31
Hamid_RT27-Nov-07 21:31 
Questionprint preview option in a dialog? Pin
panthal27-Nov-07 3:10
panthal27-Nov-07 3:10 
AnswerRe: print preview option in a dialog? Pin
Nelek27-Nov-07 3:22
protectorNelek27-Nov-07 3:22 
AnswerRe: print preview option in a dialog? Pin
Hamid_RT27-Nov-07 18:47
Hamid_RT27-Nov-07 18:47 
Questionagain some problem for validate URL Pin
CJ94200227-Nov-07 3:09
CJ94200227-Nov-07 3:09 
AnswerRe: again some problem for validate URL Pin
Nelek27-Nov-07 21:38
protectorNelek27-Nov-07 21:38 

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.