Hy I'm developing i MS C++ over the Dialogic C APIs and I face this function (I think that is from C++ not Dialogic).
strcpy();
I'm using this way:
int digitos;
// Dialogic API
if (dx_getdig(pCanal, tptdig, &dig, EV_SYNC) == -1)
{
printf("Erro Pegando Digito ...\n"
;
strcpy(digitos,""
;
}
else
{
strcpy(digitos, dig.dg_value);
}
and on the lines where are the strcpy() function when I compile I receive this error messages:
D:\Temp\Testes\Teste4\Teste4.cpp(190) : error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\Temp\Testes\Teste4\Teste4.cpp(194) : error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Someone knows what have I to do ???
Very Thanks,
Danilo ...
strcpy();
I'm using this way:
int digitos;
// Dialogic API
if (dx_getdig(pCanal, tptdig, &dig, EV_SYNC) == -1)
{
printf("Erro Pegando Digito ...\n"
strcpy(digitos,""
}
else
{
strcpy(digitos, dig.dg_value);
}
and on the lines where are the strcpy() function when I compile I receive this error messages:
D:\Temp\Testes\Teste4\Teste4.cpp(190) : error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\Temp\Testes\Teste4\Teste4.cpp(194) : error C2664: 'strcpy' : cannot convert parameter 1 from 'char' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Someone knows what have I to do ???
Very Thanks,
Danilo ...