@quasarchangel
I want to save it to a string because my current database system works only with strings. This results from the pseudo database language I wrote for it. If theres no other way but keeping the handle a var, I have to change the language a bit.
@Uhrwerk
The precision could be the problem, yes. I will try to shift the commands to a dll, maybe it is possible to convert it by C++.
The strange thing about it is still that the conversion is possible for string handles.
[EDIT]
In a dll, it works with the itoa/atoi functions (also with "var"), but not with the str_for_num/str_to_num ones.
Might be the precision problem.
Code:
char c[20];
_itoa_s(handle(pointer), c, 20, 10);
str_cpy(str1, c);
and
return(ptr_for_handle(atoi(_CHR(str1))));
Problem solved.[/EDIT]