Получение этих ошибок, когда я пытаюсь запустить этот простой C программный код на VB. нужна помощь в их устранении.
C2371 'CopySubString': redefinition;different basic types
Вот код:
// --------------------------------------------------------------------------------
// Name: CopySubString
// Abstract: Copy substring from source string to destination string
// --------------------------------------------------------------------------------
int CopySubString(char strDestination[], char strSource[], int intStartIndex, int intEndIndex)
{
int intCount = 0;
int intIndex = 0;
for (intIndex = intStartIndex; intIndex <= intEndIndex; intIndex += 1)
{
strDestination[intCount] = strSource[intIndex];
intCount = +1;
}
return strDestination[intCount];
}