Hello,
I'm trying to convert a RWCString to long.
I found stringToNum method, but I'm always getting :-
...
Error: The function "stringToNum" must have a prototype.
...
The thing is I'm including the right header file :-
#include <rw/tools/localesnapshot.h>
Interestingly enough, I'm including a different H file under the same location #include <rw/tools/regex.h> but that one works.
I then tried doing it in two steps, i.e. RWCstring to string and then string to a long :-
RWCString xx = "123456";
string fff = string(xx);
long tradeSid = atol(fff.c_str());
But, that's not very nice.
Any ideas please ?
Many thanks.
