U
Usenet User
I am using Visual Studio.NET 2003, and to my surprise, the below code
in a simple console application does not work for me:
char *str = "hello!";
*str = 'H'; <-- error
str[0] = 'H'; <-- error
The above code compiles just fine, but I am getting runtime errors.
If managed extensions are used, I'm getting "Objest reference is not
set to an object." If I disable managed extensions, I get "Access
violation" errors.
Any suggestions?
TIA!
in a simple console application does not work for me:
char *str = "hello!";
*str = 'H'; <-- error
str[0] = 'H'; <-- error
The above code compiles just fine, but I am getting runtime errors.
If managed extensions are used, I'm getting "Objest reference is not
set to an object." If I disable managed extensions, I get "Access
violation" errors.
Any suggestions?
TIA!