by Dan East » Jul 27, 2001 @ 4:21pm
First off, are you building for Windows CE or for a desktop machine? If the former, then you should be using Unicode. Second, there is a big difference between:<br><br>[fixed]char *Test="Test";[/fixed]<br><br>and<br><br>[fixed]char Test[]="Test";[/fixed];<br><br>In the first you are creating a pointer called Test. What does it point to? The constant string "Test". You are not supposed to modify const values, hence it may crash.<br>In the second example you create an array of characters, and the compiler automatically makes it large enough to hold the string you want to initialize it with. So when you modify that first character, you are simply modifying the first value in the array you created.<br>Make sense?<br><br>Dan East