The problem is in the line myMovie.title = "Movie Title";
The error message is saying, error C2440: '=' : cannot convert from 'const char [12]' to 'char [26]'
I have seen this problem with new C++ programmer's.
In C++ this thing is taken care by the class operator's but here its C and is a raw pointer. It is not going to copy the string in it automatically. You will have to call a function which will do this for you. do it like this:
Really?? LOL! I never noticed that! I am sooo used to use them that I rarely ever notice. So that one belongs to the CRT for Windows? Interesting. What would be the generic alternative? memcpy()?
Ok, I have read a little bit about this. It seems that the _s functions from Microsoft are quite controversial in the portable code arena. I also read about strncpy(), which does seem to be part of the standard C library. Use strncpy() instead of strcpy_s(), but make sure that your 26 characters can hold the string and the ending null char, because you only get the null char if your buffer length exceeds the source string's length.
these c library functions don't check for array bounds and hence its the responsibility of the programmer to handle this otherwise there would be security holes in the application like stack smashing.