Click here to Skip to main content
15,905,229 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionRe: Why doesn't this work? Pin
Ahmed Ismail Mohamed15-Jun-07 22:50
Ahmed Ismail Mohamed15-Jun-07 22:50 
QuestionSerialize with BinaryFormatter Pin
hansipet14-Jun-07 0:56
hansipet14-Jun-07 0:56 
QuestionBooks for Managed C++ Pin
vibindia13-Jun-07 16:58
vibindia13-Jun-07 16:58 
AnswerRe: Books for Managed C++ Pin
Christian Graus14-Jun-07 12:46
protectorChristian Graus14-Jun-07 12:46 
Questionreading XML using SAX method? Pin
andyspartyshop13-Jun-07 5:16
andyspartyshop13-Jun-07 5:16 
AnswerRe: reading XML using SAX method? Pin
Christian Graus14-Jun-07 12:47
protectorChristian Graus14-Jun-07 12:47 
QuestionAbout const char*& Pin
Nandu_77b13-Jun-07 2:21
Nandu_77b13-Jun-07 2:21 
AnswerRe: About const char*& Pin
Mark Salsbery13-Jun-07 4:57
Mark Salsbery13-Jun-07 4:57 
Nandu_77b wrote:
1) It is accepting both "char* x" variable and "const char* y" - is should not accept "char* x" - but it is accepting, why???????????


The const in fun() arguments means fun() won't modify the passed values. It doesn't mean you have
to pass a const.

Nandu_77b wrote:
2) function "fun()" takes ref of const char*, but the problem is - i am able to change the value of both "y" and "b" - which should not happen since it is const char* - why I am able to change????????
3) What should i do if the fun() should not allow the value of "y" and "b" to change.


try making the reference const, not just the char*...

void fun(const char * const & y, const char * const &b)

Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: About const char*& Pin
Nandu_77b18-Jun-07 3:14
Nandu_77b18-Jun-07 3:14 
GeneralRe: About const char*& Pin
Mark Salsbery18-Jun-07 4:59
Mark Salsbery18-Jun-07 4:59 
QuestionHow to fill a sector Pin
romcab13-Jun-07 0:07
romcab13-Jun-07 0:07 
AnswerRe: How to fill a sector Pin
Christian Graus13-Jun-07 13:57
protectorChristian Graus13-Jun-07 13:57 
Questioncast to a stored type Pin
Xeef12-Jun-07 11:56
Xeef12-Jun-07 11:56 
QuestionRe: cast to a stored type Pin
Mark Salsbery12-Jun-07 14:10
Mark Salsbery12-Jun-07 14:10 
QuestionSDL game engine Pin
HawkAgent12-Jun-07 2:39
HawkAgent12-Jun-07 2:39 
Question Stop Closing the main Dialog when a child Dailog is open? Pin
granshah @ eVisionISF12-Jun-07 2:33
granshah @ eVisionISF12-Jun-07 2:33 
AnswerRe: Stop Closing the main Dialog when a child Dailog is open? Pin
Christian Graus12-Jun-07 11:30
protectorChristian Graus12-Jun-07 11:30 
Questionwindows schedular is not working Pin
srinivassam11-Jun-07 20:43
srinivassam11-Jun-07 20:43 
AnswerRe: windows schedular is not working Pin
Christian Graus11-Jun-07 21:16
protectorChristian Graus11-Jun-07 21:16 
Questionmain form instance name Pin
aaron_leese11-Jun-07 19:45
aaron_leese11-Jun-07 19:45 
AnswerRe: main form instance name Pin
led mike12-Jun-07 4:28
led mike12-Jun-07 4:28 
GeneralRe: main form instance name Pin
aaron_leese12-Jun-07 15:10
aaron_leese12-Jun-07 15:10 
GeneralRe: main form instance name Pin
led mike13-Jun-07 7:02
led mike13-Jun-07 7:02 
AnswerRe: main form instance name Pin
Mark Salsbery13-Jun-07 7:57
Mark Salsbery13-Jun-07 7:57 
GeneralRe: main form instance name Pin
aaron_leese13-Jun-07 18:41
aaron_leese13-Jun-07 18:41 

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.