Message 1 of 9
strcmp function
Not applicable
08-17-2015
04:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I'm updating code from VS 2002 to Vs 2012 for use with objectarx 2015. the following bit of code -
if ((return_code == RTNORM) && (strcmp (fs_p_info, "Q") == 0))
gives me the following compiler error-
error C2664: 'strcmp' : cannot convert parameter 1 from 'TCHAR [6]' to 'const char *'
It seems the fix here should be fairly straightforward, however all the help places I've looked at haven't been of much help. So, I give up. Does anyone have any suggestions how to fix the error?
Thanks,
Brian