Click here to Skip to main content
15,927,699 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to expand a button after clicking it Pin
Member 46556858-Sep-08 23:30
Member 46556858-Sep-08 23:30 
GeneralRe: How to expand a button after clicking it Pin
toxcct8-Sep-08 23:31
toxcct8-Sep-08 23:31 
AnswerRe: How to expand a button after clicking it Pin
_AnsHUMAN_ 8-Sep-08 22:57
_AnsHUMAN_ 8-Sep-08 22:57 
AnswerRe: How to expand a button after clicking it Pin
SandipG 8-Sep-08 23:17
SandipG 8-Sep-08 23:17 
QuestionWhen to use constant variable, and when to use preprocessor/macro constants? Pin
Member 55028798-Sep-08 22:08
Member 55028798-Sep-08 22:08 
AnswerRe: When to use constant variable, and when to use preprocessor/macro constants? Pin
CPallini8-Sep-08 22:49
mveCPallini8-Sep-08 22:49 
AnswerRe: When to use constant variable, and when to use preprocessor/macro constants? Pin
shubhi8-Sep-08 23:02
shubhi8-Sep-08 23:02 
AnswerRe: When to use constant variable, and when to use preprocessor/macro constants? Pin
sashoalm9-Sep-08 2:31
sashoalm9-Sep-08 2:31 
When using macros you should always remember that they're a direct text substitution, not something the compiler does. Imagine that before your source file is passed to the compiler a normal text manipulation program substitutes the macros with their values and this changed text of your source file is sent to the compiler.

One case when macros might be better than constants is when declaring arrays.
#define MAX_PATH 260
char arr[MAX_PATH];
always works, but
const int MAX_PATH=260;
char arr[MAX_PATH];
might give you problems on older compilers.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: When to use constant variable, and when to use preprocessor/macro constants? Pin
SRKSHOME9-Sep-08 20:42
SRKSHOME9-Sep-08 20:42 
QuestionEditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:02
Dhiraj kumar Saini8-Sep-08 21:02 
AnswerRe: EditBox Problem Pin
toxcct8-Sep-08 21:17
toxcct8-Sep-08 21:17 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:29
Dhiraj kumar Saini8-Sep-08 21:29 
GeneralRe: EditBox Problem Pin
toxcct8-Sep-08 21:31
toxcct8-Sep-08 21:31 
GeneralRe: EditBox Problem Pin
_AnsHUMAN_ 8-Sep-08 21:31
_AnsHUMAN_ 8-Sep-08 21:31 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:33
Dhiraj kumar Saini8-Sep-08 21:33 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:37
Dhiraj kumar Saini8-Sep-08 21:37 
GeneralRe: EditBox Problem Pin
toxcct8-Sep-08 21:39
toxcct8-Sep-08 21:39 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:57
Dhiraj kumar Saini8-Sep-08 21:57 
GeneralRe: EditBox Problem Pin
enhzflep8-Sep-08 22:06
enhzflep8-Sep-08 22:06 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 22:33
Dhiraj kumar Saini8-Sep-08 22:33 
GeneralRe: EditBox Problem Pin
enhzflep8-Sep-08 22:50
enhzflep8-Sep-08 22:50 
GeneralRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 23:00
Dhiraj kumar Saini8-Sep-08 23:00 
QuestionRe: EditBox Problem Pin
Rajesh R Subramanian8-Sep-08 21:33
professionalRajesh R Subramanian8-Sep-08 21:33 
AnswerRe: EditBox Problem Pin
Dhiraj kumar Saini8-Sep-08 21:34
Dhiraj kumar Saini8-Sep-08 21:34 
QuestionRe: EditBox Problem Pin
Rajesh R Subramanian8-Sep-08 21:40
professionalRajesh R Subramanian8-Sep-08 21:40 

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.