Errors with conversion of unsigned char [] to const char *
-
I don't think I've ever had to cast calls to str{len|cpy| etc..} before. What's more is that it's an error: error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [256]' to 'const char *' as used in: dwLen = strlen(modemInit[i]); They should be warnings - if anything is to be said at all. Is there someway for me to set it so I don't have to cast it?
-
I don't think I've ever had to cast calls to str{len|cpy| etc..} before. What's more is that it's an error: error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [256]' to 'const char *' as used in: dwLen = strlen(modemInit[i]); They should be warnings - if anything is to be said at all. Is there someway for me to set it so I don't have to cast it?
-
I don't think I've ever had to cast calls to str{len|cpy| etc..} before. What's more is that it's an error: error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char [256]' to 'const char *' as used in: dwLen = strlen(modemInit[i]); They should be warnings - if anything is to be said at all. Is there someway for me to set it so I don't have to cast it?
The
char
type is signed, so anunsigned char*
doesn't match a signedchar*
. --Mike-- http://home.inreach.com/mdunn/ While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate. :love: your :bob: with :vegemite: and :beer: Sonork - 100.10414 AcidHelmTest out a prerelease build of my Hotfix Checker v2.0! (133K)