Click here to Skip to main content
15,891,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reference to const int Pin
Aescleal11-May-12 2:17
Aescleal11-May-12 2:17 
GeneralRe: reference to const int Pin
jschell11-May-12 13:21
jschell11-May-12 13:21 
AnswerRe: reference to const int Pin
CPallini9-May-12 22:53
mveCPallini9-May-12 22:53 
AnswerRe: reference to const int - more Pin
Richard MacCutchan10-May-12 0:32
mveRichard MacCutchan10-May-12 0:32 
GeneralRe: reference to const int - more Pin
Aabid10-May-12 1:06
Aabid10-May-12 1:06 
GeneralRe: reference to const int - more Pin
Richard MacCutchan10-May-12 1:12
mveRichard MacCutchan10-May-12 1:12 
GeneralRe: reference to const int - more Pin
Aabid10-May-12 1:36
Aabid10-May-12 1:36 
GeneralRe: reference to const int - more Pin
Richard MacCutchan10-May-12 2:23
mveRichard MacCutchan10-May-12 2:23 
C++
const int i = 10;

This statement declares to the compiler that every time it sees the name i in a line of source code, it should replace it with the value 10. You have caused confusion in your source by declaring j as a reference to a non-const value of 10. The two are not the same. You cannot cast away the const-ness of a value in this way and expect it to remain constant.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness

AnswerRe: reference to const int Pin
Aescleal10-May-12 4:56
Aescleal10-May-12 4:56 
AnswerRe: reference to const int Pin
jschell10-May-12 9:23
jschell10-May-12 9:23 
Questionuse mfc open "*.ppt"--can "use" the ppt Pin
wangafei9-May-12 21:07
wangafei9-May-12 21:07 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
ThatsAlok9-May-12 21:08
ThatsAlok9-May-12 21:08 
GeneralRe: use mfc open "*.ppt"--can "use" the ppt Pin
wangafei9-May-12 21:13
wangafei9-May-12 21:13 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
David Crow10-May-12 2:37
David Crow10-May-12 2:37 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
Malli_S10-May-12 0:55
Malli_S10-May-12 0:55 
Questioncreating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:01
Rajeev.Goutham9-May-12 21:01 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok9-May-12 21:11
ThatsAlok9-May-12 21:11 
GeneralRe: creating a dialog in non mfc application Pin
wangafei9-May-12 21:15
wangafei9-May-12 21:15 
GeneralRe: creating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:22
Rajeev.Goutham9-May-12 21:22 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok9-May-12 22:57
ThatsAlok9-May-12 22:57 
GeneralRe: creating a dialog in non mfc application Pin
wangafei10-May-12 16:40
wangafei10-May-12 16:40 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok10-May-12 19:57
ThatsAlok10-May-12 19:57 
GeneralRe: creating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:24
Rajeev.Goutham9-May-12 21:24 
QuestionDrawimage Pin
john56329-May-12 2:09
john56329-May-12 2:09 
AnswerRe: Drawimage Pin
Anu_Bala9-May-12 2:19
Anu_Bala9-May-12 2:19 

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.