I am no C programming expert, But here is a piece of code which i am working on
static char gszBuf[10] ="1234567890";
#define LS_MAX_STRING 255
LoadDatatoBuffer(id, gszBuf, LS_MAX_STRING);
// this method will load the data wrt ID to gszBuf
Considering that the above method loads a char string having more than 10 characters, i.e. gszBuf = "abcdefghijklmnopqr";
The above code will run without any issue in msdev 6.0. but the same application created using visual studio 2010 crashes when we try to copy the above data. My question is what made the above code to work in msdev 6.0 and why couldnt it run in visual studio 2010