G
Guest
I am tring to use trimstart to remove leading zeros, but all things I try
give a compiler error on converting data. I am programing in C++ .net vs2003.
This is one of my earlier attempts to call function
empcode = empcode->TrimStart ('0');
This is result:
c:\T02010_NET_ora9\cgi-bin\programs\TimeReader\TimeReaderWinService.cpp(322):
error C2664: 'System::String::TrimStart' : cannot convert parameter 1 from
'char' to '__wchar_t __gc[]'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
I have tried several ways to declare 0 but have not been able to get it in
right format I did try assigning 0 to a __wchar_t .
give a compiler error on converting data. I am programing in C++ .net vs2003.
This is one of my earlier attempts to call function
empcode = empcode->TrimStart ('0');
This is result:
c:\T02010_NET_ora9\cgi-bin\programs\TimeReader\TimeReaderWinService.cpp(322):
error C2664: 'System::String::TrimStart' : cannot convert parameter 1 from
'char' to '__wchar_t __gc[]'
Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
I have tried several ways to declare 0 but have not been able to get it in
right format I did try assigning 0 to a __wchar_t .